From 47eb10237c8500ea2ff7c416cb33f14b28dbfe65 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 4 Jan 2013 19:16:40 +1100 Subject: Fix retain count of timerTarget so it can be deallocated. From Mike Lischke at Oracle. --- cocoa/ScintillaCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa') 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(); } -- cgit v1.2.3