Fixed the include guards. This had disabled the _CrtSetDbgFlag() call, so we were no longer detecting memory leaks in debug under Win32 when exiting the app. Ouch!
(Confirmed that the leak I just fixed was present & reported by the debugger with this change in place.)
This commit is contained in:
@@ -79,7 +79,7 @@ GameApp::~GameApp()
|
||||
void GameApp::Create()
|
||||
{
|
||||
srand((unsigned int) time(0)); // initialize random
|
||||
#if not defined(QT_CONFIG) && not defined(IOS)
|
||||
#if !defined(QT_CONFIG) && !defined(IOS)
|
||||
#if defined (WIN32)
|
||||
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
|
||||
#elif not defined (LINUX)
|
||||
|
||||
Reference in New Issue
Block a user