]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
fix 10.2 shared builds from crashing
[wxWidgets.git] / src / common / appbase.cpp
index ee78eb257c32e94ca252aff8bdde098feb24df2d..118feac7adbf3aaf5485c211920827c49b6bb642 100644 (file)
@@ -269,6 +269,9 @@ wxMessageOutput *wxAppConsole::CreateMessageOutput()
 
 void wxAppConsole::ProcessPendingEvents()
 {
+    if ( !wxPendingEventsLocker )
+        return;
+    
     // ensure that we're the only thread to modify the pending events list
     wxENTER_CRIT_SECT( *wxPendingEventsLocker );