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
This commit is contained in:
Paul Cornett 2006-11-03 08:08:45 +00:00
parent 26c4d26f71
commit 7482aa1909

View 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