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
This commit is contained in:
Stefan Csomor 2005-04-07 15:40:55 +00:00
parent 60ad766eb5
commit 531436ec3d

View 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