git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51140
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Remove us from wxPendingEvents if necessary.
if ( wxPendingEvents )
{
+#if wxUSE_THREADS
if(wxPendingEventsLocker)
wxENTER_CRIT_SECT(*wxPendingEventsLocker);
+#endif
if ( wxPendingEvents->DeleteObject(this) )
{
}
//else: we weren't in this list at all, it's ok
+#if wxUSE_THREADS
if(wxPendingEventsLocker)
wxLEAVE_CRIT_SECT(*wxPendingEventsLocker);
+#endif
}
// we only delete object data, not untyped