From: Stefan Csomor Date: Thu, 7 Apr 2005 15:40:55 +0000 (+0000) Subject: release does not assert on empty bitmaps anymore X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/531436ec3d23eef2e8ac3155df7caeeee453a0a7?ds=inline release does not assert on empty bitmaps anymore git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/bitmap.cpp b/src/mac/carbon/bitmap.cpp index 7cd5989cde..8ae71b1ca0 100644 --- a/src/mac/carbon/bitmap.cpp +++ b/src/mac/carbon/bitmap.cpp @@ -108,6 +108,10 @@ void wxMacReleaseBitmapButton( ControlButtonContentInfo*info ) { ReleaseIconRef( info->u.iconRef ) ; } + else if ( info->contentType == kControlNoContent ) + { + // there's no bitmap at all, fall through silently + } else if ( info->contentType == kControlContentPictHandle ) { // owned by the bitmap, no release here