From 3887838244797c11cf590b5f819b1b9810994a3e Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Wed, 30 Dec 2009 14:11:14 +0100 Subject: [PATCH] Fix memory leak in GdkQuartzView Should remove the tracking rect in dealloc. --- gdk/quartz/GdkQuartzView.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gdk/quartz/GdkQuartzView.c b/gdk/quartz/GdkQuartzView.c index 4ae010c3f8..10f0278f1f 100644 --- a/gdk/quartz/GdkQuartzView.c +++ b/gdk/quartz/GdkQuartzView.c @@ -25,6 +25,17 @@ @implementation GdkQuartzView +-(void)dealloc +{ + if (trackingRect) + { + [self removeTrackingRect:trackingRect]; + trackingRect = 0; + } + + [super dealloc]; +} + -(void)setGdkWindow:(GdkWindow *)window { gdk_window = window;