git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-11-15 20:21:55 +00:00
parent 6258f9d978
commit 2415ff14f8

View File

@@ -149,12 +149,10 @@ void wxMacReleaseBitmapButton( ControlButtonContentInfo*info )
{
// owned by the bitmap, no release here
}
#if defined( __WXMAC_OSX__ ) && MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_2
else if ( info->contentType == kControlContentCGImageRef )
{
CGImageRelease( info->u.imageRef ) ;
}
#endif
else
{
wxFAIL_MSG(wxT("Unexpected bitmap type") ) ;