X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdde0727723f83ce75036775f202665bbe6e03a6..97e324eff05f010ce59985c670bbe501edfa75c2:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index a67f723b64..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);