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:
@@ -132,8 +132,6 @@ void wxApp::CleanUp()
|
|||||||
#endif
|
#endif
|
||||||
delete it->second;
|
delete it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete m_perDisplayData;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxApp::Exit()
|
void wxApp::Exit()
|
||||||
@@ -161,7 +159,7 @@ wxApp::wxApp()
|
|||||||
|
|
||||||
wxApp::~wxApp()
|
wxApp::~wxApp()
|
||||||
{
|
{
|
||||||
wxApp::SetInstance(NULL);
|
delete m_perDisplayData;
|
||||||
}
|
}
|
||||||
|
|
||||||
int wxApp::MainLoop()
|
int wxApp::MainLoop()
|
||||||
|
Reference in New Issue
Block a user