From b5d59f11f00a3865641d9c3b8981972f6df67ef3 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 26 Jan 2007 17:22:14 +0000 Subject: [PATCH] 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 --- src/mac/carbon/utils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 85a38d0b49..d491c42b04 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -863,6 +863,7 @@ void wxMacControl::Init() 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") ); // we cannot check the ref count here anymore, as autorelease objects might delete their refs later -- 2.45.2