diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-01-11 09:58:11 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-01-11 09:58:11 +1100 |
commit | 27c85f05e8ed3128eef0244bca0ac653752684be (patch) | |
tree | f4ed097d003d3d614b8815119a62e330d1274b08 | |
parent | d6af303ef88fd4b1c255143666d50e742f27a2cb (diff) | |
download | scintilla-mirror-27c85f05e8ed3128eef0244bca0ac653752684be.tar.gz |
Bug: [#1436] Remove as observer in TimerTarget dealloc.
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 2 |
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]; } |