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:
wrenczes@gmail.com
2010-12-10 09:18:29 +00:00
parent 4fd67bd1fd
commit 4ac3c01cb0

View File

@@ -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)