separate assert in case the control ref is already null
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -863,6 +863,7 @@ void wxMacControl::Init()
|
|||||||
|
|
||||||
void wxMacControl::Dispose()
|
void wxMacControl::Dispose()
|
||||||
{
|
{
|
||||||
|
wxASSERT_MSG( m_controlRef != NULL , wxT("Control Handle already NULL, Dispose called twice ?") );
|
||||||
wxASSERT_MSG( IsValidControlHandle(m_controlRef) , wxT("Invalid Control Handle (maybe already released) in Dispose") );
|
wxASSERT_MSG( IsValidControlHandle(m_controlRef) , wxT("Invalid Control Handle (maybe already released) in Dispose") );
|
||||||
|
|
||||||
// we cannot check the ref count here anymore, as autorelease objects might delete their refs later
|
// we cannot check the ref count here anymore, as autorelease objects might delete their refs later
|
||||||
|
Reference in New Issue
Block a user