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:
parent
60ad766eb5
commit
531436ec3d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user