Turn on memory leak checking.

This commit is contained in:
Glenn Maynard
2002-08-27 22:07:31 +00:00
parent 2e2b3d09bf
commit 0918dd3c9a
+9
View File
@@ -143,6 +143,9 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR, int nCmdShow )
_set_se_translator( StructuredExceptionHandler );
g_hInstance = hInstance;
#ifdef _DEBUG
_CrtSetDbgFlag(_CRTDBG_CHECK_ALWAYS_DF);
#endif
#ifndef _DEBUG
try
@@ -344,6 +347,12 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR, int nCmdShow )
CoUninitialize(); // Uninitialize COM
CloseHandle( g_hMutex );
#ifdef _DEBUG
_CrtCheckMemory();
_CrtDumpMemoryLeaks();
#endif
return 0L;
}