X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92b6cd628935cae5e41bbc1d1ead2b562c519ad2..3b9b80c0e25ac0ef0d162b2a8e2d8206105a485b:/src/mac/carbon/window.cpp diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index a25e4b30e7..b43b781ada 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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() ;