From 4ac3c01cb0892cc9a1084f8494ce4b896d6615ee Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Fri, 10 Dec 2010 09:18:29 +0000 Subject: [PATCH] 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.) --- projects/mtg/src/GameApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/GameApp.cpp b/projects/mtg/src/GameApp.cpp index 7bf04814d..a2c20b47c 100644 --- a/projects/mtg/src/GameApp.cpp +++ b/projects/mtg/src/GameApp.cpp @@ -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)