mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
use AUTORELEASE
This commit is contained in:
parent
6f7293d21e
commit
d6d1f2e658
1 changed files with 3 additions and 2 deletions
|
@ -104,8 +104,9 @@ static NSColorSampler *_gs_gui_color_sampler = nil;
|
|||
* but changing the cursor rapidly on X seems to cause flicker,
|
||||
* so we just use a plain magnifying glass. (dynamic code is in r33543)
|
||||
*/
|
||||
cursor = [[[NSCursor alloc] initWithImage: [NSImage imageNamed: @"MagnifyGlass"]
|
||||
hotSpot: NSMakePoint(12, 13)] autorelease];
|
||||
cursor = [[NSCursor alloc] initWithImage: [NSImage imageNamed: @"MagnifyGlass"]
|
||||
hotSpot: NSMakePoint(12, 13)];
|
||||
AUTORELEASE(cursor);
|
||||
[cursor push];
|
||||
|
||||
NS_DURING
|
||||
|
|
Loading…
Reference in a new issue