X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0ee33f5c6908b4ac5e1364381f0ef00942e3936..14d776932c74f52c5fcc12f9dc2814f177a9f329:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index f6cc91b350..9b87e18152 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -364,7 +364,10 @@ static void DoCommonPostCleanup() FreeConvertedArgs(); #endif // wxUSE_UNICODE - // Note: check for memory leaks is now done via wxDebugContextDumpDelayCounter + // use Set(NULL) and not Get() to avoid creating a message output object on + // demand when we just want to delete it + delete wxMessageOutput::Set(NULL); + #if wxUSE_LOG // and now delete the last logger as well delete wxLog::SetActiveTarget(NULL);