X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/97c79de27c368de18afab3ca655bc48a4d53fc30..6842d18650b487249b4ae29d0d7e17231b24cde8:/src/common/appcmn.cpp diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 7cf023dc9f..ee097b6b70 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -30,9 +30,15 @@ #ifndef WX_PRECOMP #include "wx/app.h" + #include "wx/list.h" #endif #include "wx/thread.h" +#include "wx/confbase.h" + +// =========================================================================== +// implementation +// =========================================================================== // --------------------------------------------------------------------------- // wxAppBase @@ -59,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; +}