diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index c56c2422bd..63b5ceb46b 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -347,6 +347,8 @@ void wxAppConsole::ProcessPendingEvents() if ( !HasPendingEvents() ) return; + wxENTER_CRIT_SECT( *wxPendingEventsLocker ); + // iterate until the list becomes empty wxList::compatibility_iterator node = wxPendingEvents->GetFirst(); while (node)