X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe277be0f1504fefcb24705dea52006d14fdebc8..a81f30662b64fd900dacda249d3304c45eb32a53:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index 15cca2da32..e6d803cbe4 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -338,16 +338,7 @@ static void DoCommonPostCleanup() FreeConvertedArgs(); #endif // wxUSE_UNICODE - // check for memory leaks -#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT - if (wxDebugContext::CountObjectsLeft(TRUE) > 0) - { - wxLogDebug(wxT("There were memory leaks.\n")); - wxDebugContext::Dump(); - wxDebugContext::PrintStatistics(); - } -#endif // Debug - + // Note: check for memory leaks is now done via wxDebugContextDumpDelayCounter #if wxUSE_LOG // and now delete the last logger as well delete wxLog::SetActiveTarget(NULL); @@ -396,6 +387,7 @@ int wxEntryReal(int& argc, wxChar **argv) wxTRY { + // app initialization if ( !wxTheApp->CallOnInit() ) { @@ -410,6 +402,8 @@ int wxEntryReal(int& argc, wxChar **argv) ~CallOnExit() { wxTheApp->OnExit(); } } callOnExit; + WX_SUPPRESS_UNUSED_WARN(callOnExit); + // app execution return wxTheApp->OnRun(); }