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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user