X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/757b694ba86ee675b6028aed470611a6ef302491..c0da0dbabf2d3cf8e1a76a2c82608822d15d0625:/src/dfb/app.cpp?ds=sidebyside diff --git a/src/dfb/app.cpp b/src/dfb/app.cpp index e84aa6ae98..2cac31028b 100644 --- a/src/dfb/app.cpp +++ b/src/dfb/app.cpp @@ -105,7 +105,9 @@ void wxApp::WakeUpIdle() wxMutexGuiEnter(); #endif - wxEventLoop::GetActive()->WakeUp(); + wxEventLoop * const loop = wxEventLoop::GetActive(); + if ( loop ) + loop->WakeUp(); #if wxUSE_THREADS if (!wxThread::IsMain()) @@ -137,8 +139,9 @@ bool wxApp::Yield(bool onlyIfNeeded) wxLog::Suspend(); - if ( wxEventLoop::GetActive() ) - wxEventLoop::GetActive()->Yield(); + wxEventLoop * const loop = wxEventLoop::GetActive(); + if ( loop ) + loop->Yield(); // it's necessary to call ProcessIdle() to update the frames sizes which // might have been changed (it also will update other things set from