aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm4
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];
}