From dd0d0e37446643ff074056a23c2670281847d870 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Tue, 18 Oct 2016 11:38:17 +1100 Subject: Ensure members of FindHighlightLayer freed. Fixes clang analyzer warning. --- cocoa/ScintillaCocoa.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 200b39df7..20f0e4440 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -198,6 +198,12 @@ static const KeyToCommand macMapDefault[] = } +- (void) dealloc { + [sFind release]; + [sFont release]; + [super dealloc]; +} + const CGFloat paddingHighlightX = 4; const CGFloat paddingHighlightY = 2; -- cgit v1.2.3