deleted.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16554
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ // Don't send the event when in the process of being deleted. This can
+ // only cause problems if the event handler tries to access the object.
+ if ( m_isBeingDeleted )
+ {
+ return FALSE;
+ }
+
wxFocusEvent event(wxEVT_KILL_FOCUS, m_windowId);
event.SetEventObject(this);
wxFocusEvent event(wxEVT_KILL_FOCUS, m_windowId);
event.SetEventObject(this);