Autorelease tracking area

This commit is contained in:
Kevin Sawicki 2017-06-05 13:48:30 -07:00
parent 7d10bf229d
commit de0daa2481

View file

@ -119,11 +119,10 @@ bool ScopedDisableResize::disable_resize_ = false;
}
- (void)updateTrackingAreas {
NSTrackingArea* const trackingArea =
[[NSTrackingArea alloc] initWithRect:NSZeroRect
options:NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways | NSTrackingInVisibleRect
owner:self
userInfo:nil];
auto trackingArea = [[[NSTrackingArea alloc] initWithRect:NSZeroRect
options:NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways | NSTrackingInVisibleRect
owner:self
userInfo:nil] autorelease];
[self addTrackingArea:trackingArea];
}