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:
@@ -379,7 +379,7 @@ wxCFRef<NSImage*> downArray ;
|
|||||||
static wxBitmap trianglebm(disc_triangle_xpm);
|
static wxBitmap trianglebm(disc_triangle_xpm);
|
||||||
if ( downArray.get() == NULL )
|
if ( downArray.get() == NULL )
|
||||||
{
|
{
|
||||||
downArray.reset( [wxDisclosureNSButton rotateImage:trianglebm.GetNSImage()] );
|
downArray.reset( [[wxDisclosureNSButton rotateImage:trianglebm.GetNSImage()] retain] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isOpen )
|
if ( isOpen )
|
||||||
@@ -407,7 +407,7 @@ wxCFRef<NSImage*> downArray ;
|
|||||||
fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0];
|
fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0];
|
||||||
|
|
||||||
[newImage unlockFocus];
|
[newImage unlockFocus];
|
||||||
return newImage;
|
return [newImage autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user