use AUTORELEASE

This commit is contained in:
Gregory John Casamento 2020-03-20 04:54:02 -04:00
parent 6f7293d21e
commit d6d1f2e658

View file

@ -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