Fixed stupid crash-on-exit bug.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-11 22:15:03 +00:00
parent 2501ce513b
commit 23016fddfc

View File

@@ -399,6 +399,7 @@ int MyApp::OnExit()
MacroDefs.Clear();
#ifdef __WXMSW__
delete TheTex2RTFServer;
wxDDECleanUp();
#endif
delete HelpInstance;
@@ -466,10 +467,6 @@ void MyFrame::OnCloseWindow(wxCloseEvent& event)
}
else if (OkToClose)
{
#ifdef __WXMSW__
delete TheTex2RTFServer;
wxDDECleanUp();
#endif
this->Destroy();
}
}