Alexandre Julliard : imagehlp: Don't bother to free memory at process exit.
Alexandre Julliard
julliard at winehq.org
Fri May 17 14:24:33 CDT 2013
Module: wine
Branch: master
Commit: 4d9dbfc3fb5245028182a32e5044588bfda30874
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4d9dbfc3fb5245028182a32e5044588bfda30874
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri May 17 12:26:31 2013 +0200
imagehlp: Don't bother to free memory at process exit.
---
dlls/imagehlp/imagehlp_main.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/imagehlp/imagehlp_main.c b/dlls/imagehlp/imagehlp_main.c
index 3ddae7a..e505126 100644
--- a/dlls/imagehlp/imagehlp_main.c
+++ b/dlls/imagehlp/imagehlp_main.c
@@ -40,10 +40,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
IMAGEHLP_hHeap = HeapCreate(0, 0x10000, 0);
break;
case DLL_PROCESS_DETACH:
+ if (lpvReserved) break;
HeapDestroy(IMAGEHLP_hHeap);
- IMAGEHLP_hHeap = NULL;
- break;
- default:
break;
}
return TRUE;
More information about the wine-cvs
mailing list