fixed crash on startup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-07-01 12:30:39 +00:00
parent 9bb1b05540
commit 5b0040077d

View File

@ -173,13 +173,6 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
return false;
}
if ( !wxAppBase::Initialize(argc, argv) )
{
XCloseDisplay(xdisplay);
return false;
}
if (syncDisplay)
XSynchronize(xdisplay, True);
@ -190,6 +183,13 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
// Misc.
wxSetDetectableAutoRepeat( TRUE );
if ( !wxAppBase::Initialize(argc, argv) )
{
XCloseDisplay(xdisplay);
return false;
}
#if wxUSE_UNICODE
// Glib's type system required by Pango
g_type_init();