Alexandre Julliard : dxgi: Don't bother to free memory at process exit.
Alexandre Julliard
julliard at winehq.org
Wed May 15 14:19:59 CDT 2013
Module: wine
Branch: master
Commit: 575d0e60142aaa0e0a0c6ae78eb79b5e37e6e5d2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=575d0e60142aaa0e0a0c6ae78eb79b5e37e6e5d2
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed May 15 10:18:37 2013 +0200
dxgi: Don't bother to free memory at process exit.
---
dlls/dxgi/dxgi_main.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/dlls/dxgi/dxgi_main.c b/dlls/dxgi/dxgi_main.c
index c9d6f2e..e9ed482 100644
--- a/dlls/dxgi/dxgi_main.c
+++ b/dlls/dxgi/dxgi_main.c
@@ -44,16 +44,8 @@ static struct dxgi_main dxgi_main;
static void dxgi_main_cleanup(void)
{
- EnterCriticalSection(&dxgi_cs);
-
HeapFree(GetProcessHeap(), 0, dxgi_main.device_layers);
- dxgi_main.device_layers = NULL;
- dxgi_main.layer_count = 0;
-
FreeLibrary(dxgi_main.d3d10core);
- dxgi_main.d3d10core = NULL;
-
- LeaveCriticalSection(&dxgi_cs);
DeleteCriticalSection(&dxgi_cs);
}
@@ -68,6 +60,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
break;
case DLL_PROCESS_DETACH:
+ if (lpv) break;
dxgi_main_cleanup();
break;
}
More information about the wine-cvs
mailing list