mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 21:56:36 +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;
|
_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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user