From: Paul Cornett Date: Fri, 3 Nov 2006 08:08:45 +0000 (+0000) Subject: ignore requests to install idle handler when app instance is not valid X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7482aa1909432c4690fb02a54cfcc59ad9ed6b71 ignore requests to install idle handler when app instance is not valid git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 3f6f2920c5..e60e5ea94c 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -344,6 +344,9 @@ static gint wxapp_poll_func( GPollFD *ufds, guint nfds, gint timeout ) void wxapp_install_idle_handler() { + if (wxTheApp == NULL) + return; + #if wxUSE_THREADS wxMutexLocker lock(gs_idleTagsMutex); #endif