]> git.saurik.com Git - wxWidgets.git/commitdiff
move m_perDisplayData destruction to dtor from CleanUp() to fix a rare memory leak
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Mar 2007 13:15:00 +0000 (13:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Mar 2007 13:15:00 +0000 (13:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/app.cpp

index 4fa8fbcc8fb0043433150e09d1149989e5c8a9ff..eacfa20a292fc9a3df39c76b041bc8b278d8b76c 100644 (file)
@@ -132,8 +132,6 @@ void wxApp::CleanUp()
 #endif
         delete it->second;
     }
-
-    delete m_perDisplayData;
 }
 
 void wxApp::Exit()
@@ -161,7 +159,7 @@ wxApp::wxApp()
 
 wxApp::~wxApp()
 {
-    wxApp::SetInstance(NULL);
+    delete m_perDisplayData;
 }
 
 int wxApp::MainLoop()