]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/window.cpp
RTTI and exceptions settings for WinCE are restored.
[wxWidgets.git] / src / mac / carbon / window.cpp
index a25e4b30e70c0a49e40cb96ec3485afd8d2fe06c..b43b781adad964eca014bb1cbddfa06310d349cc 100644 (file)
@@ -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() ;