X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e87271f35887a50e011c7c97fc63c35f5d623e50..e041ce574baf68b90b100f2d6a36724919559f89:/src/common/appcmn.cpp diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index d72316a6dd..ee097b6b70 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -34,6 +34,7 @@ #endif #include "wx/thread.h" +#include "wx/confbase.h" // =========================================================================== // implementation @@ -64,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; +}