]> git.saurik.com Git - wxWidgets.git/commitdiff
release does not assert on empty bitmaps anymore
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 7 Apr 2005 15:40:55 +0000 (15:40 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 7 Apr 2005 15:40:55 +0000 (15:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/bitmap.cpp

index 7cd5989cdef711c266b430be6d17bd75e0d840bc..8ae71b1ca0f151c72ab63186cbce6754b95221ab 100644 (file)
@@ -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