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 | 33a3da960e917c806494a58c6add1d970d6ca3ba (patch) | |
tree | 107c3a19a48aa8c16ed4881ec0ed46ea7c9fc759 | |
parent | f18347dd8b4dbbaaccb038e00db883e4d074e538 (diff) | |
download | scintilla-mirror-33a3da960e917c806494a58c6add1d970d6ca3ba.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]; } |