DebugAlloc and DebugFree must be present also if there is no overridden global new as wxObject::new still needs it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2005-02-07 10:12:12 +00:00
parent 27bb69ac80
commit 5a7d1ad8a3

View 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