Autorelease tracking area

This commit is contained in:
Kevin Sawicki 2017-06-28 12:37:31 -07:00
parent e44f655503
commit 06a550b412

View file

@ -58,11 +58,11 @@ const CGFloat kVerticalTitleMargin = 2;
[self updateDimensions]; [self updateDimensions];
// Add NSTrackingArea for listening to mouseEnter and mouseExit events // Add NSTrackingArea for listening to mouseEnter and mouseExit events
NSTrackingArea* trackingArea = [[NSTrackingArea alloc] auto trackingArea = [[[NSTrackingArea alloc]
initWithRect:[self bounds] initWithRect:[self bounds]
options:NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways options:NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways
owner:self owner:self
userInfo:nil]; userInfo:nil] autorelease];
[self addTrackingArea:trackingArea]; [self addTrackingArea:trackingArea];
} }
return self; return self;