Applied some of patch [ 688466 ] MSVC7 build & bug fixes
by Darren Whobrey git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -656,6 +656,15 @@ wxEvtHandler::~wxEvtHandler()
|
||||
# if !defined(__VISAGECPP__)
|
||||
delete m_eventsLocker;
|
||||
# endif
|
||||
|
||||
// Remove us from wxPendingEvents if necessary.
|
||||
if(wxPendingEventsLocker)
|
||||
wxENTER_CRIT_SECT(*wxPendingEventsLocker);
|
||||
if ( wxPendingEvents ) {
|
||||
wxPendingEvents->DeleteObject(this);
|
||||
}
|
||||
if(wxPendingEventsLocker)
|
||||
wxLEAVE_CRIT_SECT(*wxPendingEventsLocker);
|
||||
#endif
|
||||
|
||||
// we only delete object data, not untyped
|
||||
|
Reference in New Issue
Block a user