aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaCocoa.mm
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-09-04 13:10:56 +0000
committernyamatongwe <devnull@localhost>2009-09-04 13:10:56 +0000
commitcade69e35c51bd48833ed77e417679056540c8ae (patch)
tree14f95125eabdb66adbac884b9e709b2f187da42d /cocoa/ScintillaCocoa.mm
parent61606c7b32ba1f72f0f51ff7e2a7b9b9c0725980 (diff)
downloadscintilla-mirror-cade69e35c51bd48833ed77e417679056540c8ae.tar.gz
Fix in the InfoBar to avoid setting a cell class for the entire application.
Fixed memory leak re. notification center. Cursor handling did not properly retain the used cursor image.
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
-rw-r--r--cocoa/ScintillaCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 322e7c679..81dd991e7 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -137,7 +137,7 @@ static const KeyToCommand macMapDefault[] =
// Get the default notification queue for the thread which created the instance (usually the
// main thread). We need that later for idle event processing.
NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
- notificationQueue = [[NSNotificationQueue alloc] initWithNotificationCenter: center];
+ notificationQueue = [[[NSNotificationQueue alloc] initWithNotificationCenter: center] autorelease];
[center addObserver: self selector: @selector(idleTriggered:) name: @"Idle" object: nil];
}
return self;