From 33a3da960e917c806494a58c6add1d970d6ca3ba Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 11 Jan 2013 09:58:11 +1100 Subject: Bug: [#1436] Remove as observer in TimerTarget dealloc. --- cocoa/ScintillaCocoa.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cocoa') diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 4cf61b3f4..9dc572fc8 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -329,6 +329,8 @@ const CGFloat paddingHighlightY = 2; - (void) dealloc { + NSNotificationCenter* center = [NSNotificationCenter defaultCenter]; + [center removeObserver:self]; [notificationQueue release]; [super dealloc]; } -- cgit v1.2.3