Really free the memory on dll unload.

oldstable
Alexandre Julliard 2001-05-10 19:17:54 +00:00
parent e3fe9f24ce
commit 2418edb101
1 changed files with 1 additions and 1 deletions

View File

@ -1519,8 +1519,8 @@ static void MODULE_FlushModrefs(void)
MODULE_modref_list = wm->next;
TRACE(" unloading %s\n", wm->filename);
VirtualFree( (LPVOID)wm->module, 0, MEM_RELEASE );
if (wm->dlhandle) wine_dll_unload( wm->dlhandle );
else UnmapViewOfFile( (LPVOID)wm->module );
FreeLibrary16(wm->hDummyMod);
HeapFree( GetProcessHeap(), 0, wm->deps );
HeapFree( GetProcessHeap(), 0, wm->filename );