From d206654397fc26f1d34032b1eaa53f5226288cb6 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 3 Mar 2004 09:39:02 +0000 Subject: [PATCH] tentative fix for http://sourceforge.net/tracker/index.php?func=detail&aid=908712&group_id=9863&atid=109863 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/control.cpp | 2 ++ src/mac/control.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/mac/carbon/control.cpp b/src/mac/carbon/control.cpp index 49be26a16c..a2ad5d4e16 100644 --- a/src/mac/carbon/control.cpp +++ b/src/mac/carbon/control.cpp @@ -196,6 +196,8 @@ wxControl::~wxControl() } if ( (ControlHandle) m_macControl ) { + // in case the callback might be called during destruction + ::SetControlColorProc( m_macControl , NULL ) ; ::DisposeControl( (ControlHandle) m_macControl ) ; m_macControl = NULL ; } diff --git a/src/mac/control.cpp b/src/mac/control.cpp index 49be26a16c..a2ad5d4e16 100644 --- a/src/mac/control.cpp +++ b/src/mac/control.cpp @@ -196,6 +196,8 @@ wxControl::~wxControl() } if ( (ControlHandle) m_macControl ) { + // in case the callback might be called during destruction + ::SetControlColorProc( m_macControl , NULL ) ; ::DisposeControl( (ControlHandle) m_macControl ) ; m_macControl = NULL ; } -- 2.47.2