aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaCocoa.mm
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-09-04 13:10:56 +0000
committernyamatongwe <unknown>2009-09-04 13:10:56 +0000
commitd5e42b78a2b7564c7e3a18daf67a8dea99d28724 (patch)
tree14f95125eabdb66adbac884b9e709b2f187da42d /cocoa/ScintillaCocoa.mm
parentd31af315a209ab200faa4f6c1d50ce0b4ddee7ca (diff)
downloadscintilla-mirror-d5e42b78a2b7564c7e3a18daf67a8dea99d28724.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;