aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2012-08-14 09:27:42 +1000
committernyamatongwe <nyamatongwe@gmail.com>2012-08-14 09:27:42 +1000
commite70256f3659b8534dfbef24cd00c3957b9a2dd8d (patch)
tree982e5e53bb7f5e84580e3734a1c1bbd94f95040d
parent02c6cf9e3edbf71308d7e9eab67100fac80cf777 (diff)
downloadscintilla-mirror-e70256f3659b8534dfbef24cd00c3957b9a2dd8d.tar.gz
Drop notifications so not sent after ScintillaView freed.
-rw-r--r--cocoa/ScintillaView.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index 68290f74d..ba363ef14 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -858,6 +858,7 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa
- (void) dealloc
{
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
[mInfoBar release];
delete mBackend;
[super dealloc];