X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e2896e5c8944c5f5227fa080e1b781c4a6f2600..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/common/appcmn.cpp?ds=sidebyside diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 8cb28408e7..ee097b6b70 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -30,21 +30,16 @@ #ifndef WX_PRECOMP #include "wx/app.h" + #include "wx/list.h" #endif #include "wx/thread.h" -#include "wx/clipbrd.h" +#include "wx/confbase.h" // =========================================================================== // implementation // =========================================================================== -// ---------------------------------------------------------------------------- -// some global data defined here -// ---------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxClipboardModule, wxModule) - // --------------------------------------------------------------------------- // wxAppBase // ---------------------------------------------------------------------------- @@ -70,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; +}