X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d0b1695e01f1572540e79cbb7bd360c1f2d5979..0bbe61b8c18a1795189f0cf73cc61c14a0fb846d:/src/mac/carbon/bitmap.cpp?ds=inline diff --git a/src/mac/carbon/bitmap.cpp b/src/mac/carbon/bitmap.cpp index 7fd7536644..19334a0f7c 100644 --- a/src/mac/carbon/bitmap.cpp +++ b/src/mac/carbon/bitmap.cpp @@ -565,8 +565,9 @@ IconRef wxBitmapRefData::GetIconRef() HLock((Handle) iconFamily); OSStatus err = GetIconRefFromIconFamilyPtr( *iconFamily, GetHandleSize((Handle) iconFamily), &m_iconRef ); HUnlock((Handle) iconFamily); - wxASSERT_MSG( err == noErr , wxT("Error when constructing icon ref") ); DisposeHandle( (Handle) iconFamily ) ; + + wxCHECK_MSG( err == noErr, NULL, wxT("Error when constructing icon ref") ); } return m_iconRef ;