Skip to content
Snippets Groups Projects
Commit 2418edb1 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Really free the memory on dll unload.

parent e3fe9f24
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment