Autorelease tracking area
This commit is contained in:
parent
7d10bf229d
commit
de0daa2481
1 changed files with 4 additions and 5 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue