don't create wxEventLoop in Initialize(), it's too early to do it there -- wait until it's really needed in MainLoop()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-05-24 12:28:31 +00:00
parent a9b9495bc0
commit aea33a3e85

View File

@@ -171,9 +171,6 @@ bool wxAppConsole::Initialize(int& argcOrig, wxChar **argvOrig)
wxPendingEventsLocker = new wxCriticalSection; wxPendingEventsLocker = new wxCriticalSection;
#endif #endif
// create port-specific main loop
m_mainLoop = CreateMainLoop();
#ifndef __WXPALMOS__ #ifndef __WXPALMOS__
if ( m_appName.empty() && argv ) if ( m_appName.empty() && argv )
{ {
@@ -191,9 +188,12 @@ wxEventLoopBase *wxAppConsole::CreateMainLoop()
} }
void wxAppConsole::CleanUp() void wxAppConsole::CleanUp()
{
if ( m_mainLoop )
{ {
delete m_mainLoop; delete m_mainLoop;
m_mainLoop = NULL; m_mainLoop = NULL;
}
delete wxPendingEvents; delete wxPendingEvents;
wxPendingEvents = NULL; wxPendingEvents = NULL;