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:
parent
9bb1b05540
commit
5b0040077d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user