From a6a68df85b4c621132e37ba76fa9c2b2111efbb4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 Mar 2007 13:15:00 +0000 Subject: [PATCH] move m_perDisplayData destruction to dtor from CleanUp() to fix a rare memory leak git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/app.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 4fa8fbcc8f..eacfa20a29 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -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()