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:
parent
26c4d26f71
commit
7482aa1909
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user