X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4843cdfe0f9b64aeb9e95266b69752c32322a493..caa2490c0fb8053b1d416117a9619695d75af9e4:/src/gtk1/app.cpp diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index b894f1bb1c..dbe83542dc 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -447,6 +447,7 @@ wxApp::wxApp() // this is NULL for a "regular" wxApp, but is set (and freed) by a wxGLApp m_glVisualInfo = (void *) NULL; + m_glFBCInfo = (void *) NULL; } wxApp::~wxApp() @@ -605,6 +606,12 @@ bool wxApp::Initialize(int& argc, wxChar **argv) wxConvCurrent = (wxMBConv*) NULL; #endif // wxUSE_WCHAR_T/!wxUSE_WCHAR_T +#ifdef __WXGTK20__ + m_convBrokenFileNames = new wxConvBrokenFileNames; + m_oldConvFileName = wxConvFileName; + wxConvFileName = m_convBrokenFileNames; +#endif + #if wxUSE_UNICODE // gtk_init() wants UTF-8, not wchar_t, so convert int i; @@ -679,6 +686,11 @@ bool wxApp::Initialize(int& argc, wxChar **argv) void wxApp::CleanUp() { +#ifdef __WXGTK20__ + delete m_convBrokenFileNames; + wxConvFileName = m_oldConvFileName; +#endif + gdk_threads_leave(); wxAppBase::CleanUp();