removing event handlers on non-owned windows when the destroy event is sent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1144,15 +1144,13 @@ wxNonOwnedWindowCarbonImpl::~wxNonOwnedWindowCarbonImpl()
|
||||
|
||||
}
|
||||
|
||||
void wxNonOwnedWindowCarbonImpl::Destroy()
|
||||
void wxNonOwnedWindowCarbonImpl::WillBeDestroyed()
|
||||
{
|
||||
if ( m_macEventHandler )
|
||||
{
|
||||
::RemoveEventHandler((EventHandlerRef) m_macEventHandler);
|
||||
m_macEventHandler = NULL ;
|
||||
}
|
||||
|
||||
wxPendingDelete.Append( new wxDeferredObjectDeleter( this ) ) ;
|
||||
}
|
||||
|
||||
void wxNonOwnedWindowInstallTopLevelWindowEventHandler(WindowRef window, EventHandlerRef* handler, void *ref)
|
||||
|
||||
Reference in New Issue
Block a user