From 2418edb101078b9886717dfcd084e0ebcf00bc36 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 10 May 2001 19:17:54 +0000 Subject: [PATCH] Really free the memory on dll unload. --- loader/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/module.c b/loader/module.c index a549c5c8f62..68d0cbeff5b 100644 --- a/loader/module.c +++ b/loader/module.c @@ -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 );