aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-01-11 09:58:11 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-01-11 09:58:11 +1100
commit27c85f05e8ed3128eef0244bca0ac653752684be (patch)
treef4ed097d003d3d614b8815119a62e330d1274b08
parentd6af303ef88fd4b1c255143666d50e742f27a2cb (diff)
downloadscintilla-mirror-27c85f05e8ed3128eef0244bca0ac653752684be.tar.gz
Bug: [#1436] Remove as observer in TimerTarget dealloc.
-rw-r--r--cocoa/ScintillaCocoa.mm2
1 files changed, 2 insertions, 0 deletions
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];
}