-int wxAppBase::OnRun()
-{
- // see the comment in ctor: if the initial value hasn't been changed, use
- // the default Yes from now on
- if ( m_exitOnFrameDelete == Later )
- {
- m_exitOnFrameDelete = Yes;
- }
- //else: it has been changed, assume the user knows what he is doing
-
- return MainLoop();
-}
-
-#endif // wxUSE_GUI
-
-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
-
-#ifdef __WXUNIVERSAL__
- delete wxTheme::Set(NULL);
-#endif // __WXUNIVERSAL__
-
- // use Set(NULL) and not Get() to avoid creating a message output object on
- // demand when we just want to delete it
- delete wxMessageOutput::Set(NULL);
-
- return 0;