mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
Fix a memory leak in GLFWContentView
This commit is contained in:
parent
98a83b362f
commit
388ad3dd97
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user