Fix memory leak in GdkQuartzView
Should remove the tracking rect in dealloc.
This commit is contained in:
@ -25,6 +25,17 @@
|
||||
|
||||
@implementation GdkQuartzView
|
||||
|
||||
-(void)dealloc
|
||||
{
|
||||
if (trackingRect)
|
||||
{
|
||||
[self removeTrackingRect:trackingRect];
|
||||
trackingRect = 0;
|
||||
}
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
-(void)setGdkWindow:(GdkWindow *)window
|
||||
{
|
||||
gdk_window = window;
|
||||
|
Reference in New Issue
Block a user