Alexandre Julliard : msacm32: Don't bother to free memory at process exit.

Alexandre Julliard julliard at winehq.org
Mon May 20 15:13:57 CDT 2013


Module: wine
Branch: master
Commit: 3181d9130c6f23a7e7cf885efec0a126af9d4d84
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3181d9130c6f23a7e7cf885efec0a126af9d4d84

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon May 20 12:27:44 2013 +0200

msacm32: Don't bother to free memory at process exit.

---

 dlls/msacm32/msacm32_main.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/msacm32/msacm32_main.c b/dlls/msacm32/msacm32_main.c
index 6552812..a47611c 100644
--- a/dlls/msacm32/msacm32_main.c
+++ b/dlls/msacm32/msacm32_main.c
@@ -55,9 +55,8 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
 	break;
     case DLL_PROCESS_DETACH:
         MSACM_UnregisterAllDrivers();
+        if (lpvReserved) break;
         HeapDestroy(MSACM_hHeap);
-        MSACM_hHeap = NULL;
-        MSACM_hInstance32 = NULL;
 	break;
     default:
 	break;




More information about the wine-cvs mailing list