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
This commit is contained in:
Vadim Zeitlin 2007-03-30 13:15:00 +00:00
parent 3681c515e2
commit a6a68df85b

View 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()