]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed stupid crash-on-exit bug.
authorJulian Smart <julian@anthemion.co.uk>
Mon, 11 Jan 1999 22:15:03 +0000 (22:15 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 11 Jan 1999 22:15:03 +0000 (22:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/tex2rtf/src/tex2rtf.cpp

index 42ca52a52985479e870669542e9bbbe544b44d96..d99f91343994965869c7d2351d82525d4d8b8c4f 100644 (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();
   }
 }