GtkGesture: Don't leak the group link

Found in a valgrind log.
This commit is contained in:
Matthias Clasen 2014-06-28 20:15:12 -04:00
parent 18126121a4
commit 70bfb02fde

View File

@ -208,7 +208,11 @@ gtk_gesture_set_property (GObject *object,
static void
gtk_gesture_finalize (GObject *object)
{
GtkGesturePrivate *priv = gtk_gesture_get_instance_private (GTK_GESTURE (object));
GtkGesture *gesture = GTK_GESTURE (object);
GtkGesturePrivate *priv = gtk_gesture_get_instance_private (gesture);
gtk_gesture_ungroup (gesture);
g_list_free (priv->group_link);
g_hash_table_destroy (priv->points);