]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appcmn.cpp
1. undid my wrong fix to wxWindowBase::Centre
[wxWidgets.git] / src / common / appcmn.cpp
index 357f388c085c0a65b1f7699982ae9625bb1d20e3..ee097b6b70edb53bbfae19f147610e13342b33b0 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/app.h"
+    #include "wx/list.h"
 #endif
 
 #include "wx/thread.h"
+#include "wx/confbase.h"
 
 // ===========================================================================
 // implementation
@@ -63,3 +65,13 @@ void wxAppBase::ProcessPendingEvents()
     }
 }
 
+int wxAppBase::OnExit()
+{
+#if wxUSE_CONFIG
+    // delete the config object if any (don't use Get() here, but Set()
+    // because Get() could create a new config object)
+    delete wxConfigBase::Set((wxConfigBase *) NULL);
+#endif // wxUSE_CONFIG
+
+    return 0;
+}