adapting ownership semantics to cocoa convention
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
415dfa555a
commit
adf264f222
@ -379,7 +379,7 @@ wxCFRef<NSImage*> downArray ;
|
||||
static wxBitmap trianglebm(disc_triangle_xpm);
|
||||
if ( downArray.get() == NULL )
|
||||
{
|
||||
downArray.reset( [wxDisclosureNSButton rotateImage:trianglebm.GetNSImage()] );
|
||||
downArray.reset( [[wxDisclosureNSButton rotateImage:trianglebm.GetNSImage()] retain] );
|
||||
}
|
||||
|
||||
if ( isOpen )
|
||||
@ -407,7 +407,7 @@ wxCFRef<NSImage*> downArray ;
|
||||
fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0];
|
||||
|
||||
[newImage unlockFocus];
|
||||
return newImage;
|
||||
return [newImage autorelease];
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user