mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
Fix memory leak in GdkQuartzView
Should remove the tracking rect in dealloc.
This commit is contained in:
parent
ee62948b83
commit
3887838244
@ -25,6 +25,17 @@
|
||||
|
||||
@implementation GdkQuartzView
|
||||
|
||||
-(void)dealloc
|
||||
{
|
||||
if (trackingRect)
|
||||
{
|
||||
[self removeTrackingRect:trackingRect];
|
||||
trackingRect = 0;
|
||||
}
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
-(void)setGdkWindow:(GdkWindow *)window
|
||||
{
|
||||
gdk_window = window;
|
||||
|
Loading…
Reference in New Issue
Block a user