Fix memory leak in GdkQuartzView

Should remove the tracking rect in dealloc.
This commit is contained in:
Kristian Rietveld 2009-12-30 14:11:14 +01:00
parent ee62948b83
commit 3887838244

View File

@ -25,6 +25,17 @@
@implementation GdkQuartzView
-(void)dealloc
{
if (trackingRect)
{
[self removeTrackingRect:trackingRect];
trackingRect = 0;
}
[super dealloc];
}
-(void)setGdkWindow:(GdkWindow *)window
{
gdk_window = window;