]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/init.cpp
changed background color reference from light gray to assigned bkgd color
[wxWidgets.git] / src / common / init.cpp
index f6cc91b3503328e4d75f2412bb97d574d8fb6ae9..9b87e1815244d7fbf73bbd262ffa881a144a862a 100644 (file)
@@ -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);