diff --git a/dlls/dxgi/dxgi_main.c b/dlls/dxgi/dxgi_main.c index 36e33268899..c9d6f2e6845 100644 --- a/dlls/dxgi/dxgi_main.c +++ b/dlls/dxgi/dxgi_main.c @@ -54,6 +54,7 @@ static void dxgi_main_cleanup(void) dxgi_main.d3d10core = NULL; LeaveCriticalSection(&dxgi_cs); + DeleteCriticalSection(&dxgi_cs); } BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)