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
commit9b8ff9cfedb49bdfe164990b0e6bb4ebff120446 (patch)
tree95506889363abf7a5dd3e8f54de3474329b76c3e
parent8539d5a369320d212e0a87d95a349ba593e63ab6 (diff)
downloadscintilla-mirror-9b8ff9cfedb49bdfe164990b0e6bb4ebff120446.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];