]> git.saurik.com Git - wxWidgets.git/commitdiff
DebugAlloc and DebugFree must be present also if there is no overridden global new...
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 7 Feb 2005 10:12:12 +0000 (10:12 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 7 Feb 2005 10:12:12 +0000 (10:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/memory.cpp

index a6a4a32d50488188dc45ce1f198f57159455eeaa..18b7e30a689cfe298a83a01a928e8e7d10a092af 100644 (file)
@@ -950,6 +950,7 @@ void operator delete[] (void * buf)
   wxDebugFree(buf, true);
 }
 #endif
+#endif // wxUSE_GLOBAL_MEMORY_OPERATORS
 
 // TODO: store whether this is a vector or not.
 void * wxDebugAlloc(size_t size, wxChar * fileName, int lineNum, bool isObject, bool WXUNUSED(isVect) )
@@ -1061,7 +1062,6 @@ void wxDebugFree(void * buf, bool WXUNUSED(isVect) )
     free((char *)st);
 }
 
-#endif // wxUSE_GLOBAL_MEMORY_OPERATORS
 #endif // __WXDEBUG__
 
 // Trace: send output to the current debugging stream