Fix a memory leak in GLFWContentView

This commit is contained in:
Mario Dorn 2015-11-14 02:50:35 +01:00
parent 98a83b362f
commit 388ad3dd97

View File

@ -285,7 +285,7 @@ static const NSRange kEmptyRange = {NSNotFound, 0};
{ {
_GLFWwindow* window; _GLFWwindow* window;
NSTrackingArea* trackingArea; NSTrackingArea* trackingArea;
NSMutableAttributedString *markedText; NSMutableAttributedString* markedText;
} }
- (id)initWithGlfwWindow:(_GLFWwindow *)initWindow; - (id)initWithGlfwWindow:(_GLFWwindow *)initWindow;
@ -325,9 +325,10 @@ static const NSRange kEmptyRange = {NSNotFound, 0};
return self; return self;
} }
-(void)dealloc - (void)dealloc
{ {
[trackingArea release]; [trackingArea release];
[markedText release];
[super dealloc]; [super dealloc];
} }