mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
gtkwindow: Fix a memory leak
The private data GtkGesture* drag_gesture was added by commit
13e22e2030
, but it's never destroyed.
Unref it in gtk_window_finalize().
https://bugzilla.gnome.org/show_bug.cgi?id=749425
This commit is contained in:
parent
90a8118838
commit
12ccebe2a4
@ -5756,6 +5756,9 @@ gtk_window_finalize (GObject *object)
|
||||
if (priv->multipress_gesture)
|
||||
g_object_unref (priv->multipress_gesture);
|
||||
|
||||
if (priv->drag_gesture)
|
||||
g_object_unref (priv->drag_gesture);
|
||||
|
||||
G_OBJECT_CLASS (gtk_window_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user