delete m_mainLoop on exit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -171,7 +171,7 @@ bool wxAppConsole::Initialize(int& argcOrig, wxChar **argvOrig)
|
|||||||
wxPendingEventsLocker = new wxCriticalSection;
|
wxPendingEventsLocker = new wxCriticalSection;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//create port specific main loop
|
// create port-specific main loop
|
||||||
m_mainLoop = CreateMainLoop();
|
m_mainLoop = CreateMainLoop();
|
||||||
|
|
||||||
#ifndef __WXPALMOS__
|
#ifndef __WXPALMOS__
|
||||||
@@ -192,6 +192,9 @@ wxEventLoop *wxAppConsole::CreateMainLoop()
|
|||||||
|
|
||||||
void wxAppConsole::CleanUp()
|
void wxAppConsole::CleanUp()
|
||||||
{
|
{
|
||||||
|
delete m_mainLoop;
|
||||||
|
m_mainLoop = NULL;
|
||||||
|
|
||||||
delete wxPendingEvents;
|
delete wxPendingEvents;
|
||||||
wxPendingEvents = NULL;
|
wxPendingEvents = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user