diff options
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r-- | cocoa/ScintillaView.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index f4c4f615f..1e85ab6e8 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -248,7 +248,10 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) - (void) updateTrackingAreas { if (trackingArea) + { [self removeTrackingArea:trackingArea]; + [trackingArea release]; + } int opts = (NSTrackingActiveAlways | NSTrackingInVisibleRect | NSTrackingMouseEnteredAndExited | NSTrackingMouseMoved); trackingArea = [[NSTrackingArea alloc] initWithRect:[self bounds] @@ -1244,6 +1247,7 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context - (void) dealloc { [mCurrentCursor release]; + [trackingArea release]; [super dealloc]; } |