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:
Kjell Ahlstedt 2015-05-15 15:39:04 +02:00
parent 90a8118838
commit 12ccebe2a4

View File

@ -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);
}