Really free the memory on dll unload.
This commit is contained in:
parent
e3fe9f24ce
commit
2418edb101
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue