From 7482aa1909432c4690fb02a54cfcc59ad9ed6b71 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 3 Nov 2006 08:08:45 +0000 Subject: [PATCH] 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 --- src/gtk/app.cpp | 3 +++ 1 file changed, 3 insertions(+) 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