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
This commit is contained in:
parent
f3a355ceb3
commit
d206654397
@ -196,6 +196,8 @@ wxControl::~wxControl()
|
|||||||
}
|
}
|
||||||
if ( (ControlHandle) m_macControl )
|
if ( (ControlHandle) m_macControl )
|
||||||
{
|
{
|
||||||
|
// in case the callback might be called during destruction
|
||||||
|
::SetControlColorProc( m_macControl , NULL ) ;
|
||||||
::DisposeControl( (ControlHandle) m_macControl ) ;
|
::DisposeControl( (ControlHandle) m_macControl ) ;
|
||||||
m_macControl = NULL ;
|
m_macControl = NULL ;
|
||||||
}
|
}
|
||||||
|
@ -196,6 +196,8 @@ wxControl::~wxControl()
|
|||||||
}
|
}
|
||||||
if ( (ControlHandle) m_macControl )
|
if ( (ControlHandle) m_macControl )
|
||||||
{
|
{
|
||||||
|
// in case the callback might be called during destruction
|
||||||
|
::SetControlColorProc( m_macControl , NULL ) ;
|
||||||
::DisposeControl( (ControlHandle) m_macControl ) ;
|
::DisposeControl( (ControlHandle) m_macControl ) ;
|
||||||
m_macControl = NULL ;
|
m_macControl = NULL ;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user