aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-01-04 19:16:40 +1100
committernyamatongwe <devnull@localhost>2013-01-04 19:16:40 +1100
commit47eb10237c8500ea2ff7c416cb33f14b28dbfe65 (patch)
treec9aa2f6213ea3e36818e6b2fc50a5f7cd94277aa
parente747a5f6cced2aec6ecb0ed2cee24736e54764b1 (diff)
downloadscintilla-mirror-47eb10237c8500ea2ff7c416cb33f14b28dbfe65.tar.gz
Fix retain count of timerTarget so it can be deallocated.
From Mike Lischke at Oracle.
-rw-r--r--cocoa/ScintillaCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index cdf3f059a..365f6cb2e 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -382,7 +382,7 @@ const CGFloat paddingHighlightY = 2;
ScintillaCocoa::ScintillaCocoa(NSView* view)
{
wMain = view; // Don't retain since we're owned by view, which would cause a cycle
- timerTarget = [[[TimerTarget alloc] init: this] retain];
+ timerTarget = [[TimerTarget alloc] init: this];
layerFindIndicator = NULL;
Initialise();
}