]> git.saurik.com Git - wxWidgets.git/commitdiff
ignore requests to install idle handler when app instance is not valid
authorPaul Cornett <paulcor@bullseye.com>
Fri, 3 Nov 2006 08:08:45 +0000 (08:08 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Fri, 3 Nov 2006 08:08:45 +0000 (08:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/app.cpp

index 3f6f2920c5a4b3a79073360ae7c7a577231512d5..e60e5ea94cf8d4b277d31e691c5ebd155168fbe8 100644 (file)
@@ -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