From 388ad3dd97f689e786665e7ec95348d9f19c1c6c Mon Sep 17 00:00:00 2001 From: Mario Dorn Date: Sat, 14 Nov 2015 02:50:35 +0100 Subject: [PATCH] Fix a memory leak in GLFWContentView --- src/cocoa_window.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index cf583a257..472ca92fd 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -285,7 +285,7 @@ static const NSRange kEmptyRange = {NSNotFound, 0}; { _GLFWwindow* window; NSTrackingArea* trackingArea; - NSMutableAttributedString *markedText; + NSMutableAttributedString* markedText; } - (id)initWithGlfwWindow:(_GLFWwindow *)initWindow; @@ -325,9 +325,10 @@ static const NSRange kEmptyRange = {NSNotFound, 0}; return self; } --(void)dealloc +- (void)dealloc { [trackingArea release]; + [markedText release]; [super dealloc]; }