From 274b0e9f550f2f08c53cb57b1a1abf4a0296744a Mon Sep 17 00:00:00 2001 From: wdbee Date: Mon, 17 Nov 2014 21:09:21 +0000 Subject: [PATCH] Excluded ReleaseData() if Memory Manager is not used git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5845 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 0b7bfdb6d4d1648991a0409bdc530ade4aeeb558 Former-commit-id: 6e8ff16e9758c272ef46d2dd5bdc40f143d826ee --- src/main/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/main.cpp b/src/main/main.cpp index 0f117ce99..7370a64fc 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -231,8 +231,10 @@ main(int argc, char *argv[]) if (piUserItf && piRaceEngine) { +#ifdef __DEBUG_MEMORYMANAGER__ // Allow to use Garbage Collection in case of GfuiApp().restart(); pApp->ReleaseData = &ReleaseData; +#endif // Enter the user interface. if (piUserItf->activate())