remove the carbon event handlers just before calling DisposeControl to avoid callbacks into zombie windows...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
83498ef2b0
commit
229f627030
@ -763,6 +763,7 @@ wxWindowMac::~wxWindowMac()
|
||||
{
|
||||
// in case the callback might be called during destruction
|
||||
wxRemoveMacControlAssociation( this) ;
|
||||
::RemoveEventHandler( (EventHandlerRef ) m_macControlEventHandler ) ;
|
||||
// we currently are not using this hook
|
||||
// ::SetControlColorProc( *m_peer , NULL ) ;
|
||||
m_peer->Dispose() ;
|
||||
|
Loading…
Reference in New Issue
Block a user