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:
@@ -108,6 +108,10 @@ void wxMacReleaseBitmapButton( ControlButtonContentInfo*info )
|
|||||||
{
|
{
|
||||||
ReleaseIconRef( info->u.iconRef ) ;
|
ReleaseIconRef( info->u.iconRef ) ;
|
||||||
}
|
}
|
||||||
|
else if ( info->contentType == kControlNoContent )
|
||||||
|
{
|
||||||
|
// there's no bitmap at all, fall through silently
|
||||||
|
}
|
||||||
else if ( info->contentType == kControlContentPictHandle )
|
else if ( info->contentType == kControlContentPictHandle )
|
||||||
{
|
{
|
||||||
// owned by the bitmap, no release here
|
// owned by the bitmap, no release here
|
||||||
|
Reference in New Issue
Block a user