diff options
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 2 |
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; |