Stefan Csomor 2004-03-03 09:39:02 +00:00
parent f3a355ceb3
commit d206654397
2 changed files with 4 additions and 0 deletions

View File

@ -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 ;
}

View File

@ -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 ;
}