X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72cdf4c9b3ce92addf09cfb322f0c19bfb0f8744..f76dbc4d52c005b63745cf924efe30eece4c6f79:/src/common/appcmn.cpp diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 357f388c08..ee097b6b70 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -30,9 +30,11 @@ #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; +}