Commit 0fe0ee89 authored by Matthias Clasen's avatar Matthias Clasen

gesture: Don't leak stashed events

These events were never freed.
parent a0472694
......@@ -993,6 +993,17 @@ gtk_gesture_class_init (GtkGestureClass *klass)
static void
free_point_data (gpointer data)
PointData *point = data;
if (point->event)
gdk_event_free (point->event);
g_free (point);
static void
gtk_gesture_init (GtkGesture *gesture)
......@@ -1000,7 +1011,7 @@ gtk_gesture_init (GtkGesture *gesture)
priv = gtk_gesture_get_instance_private (gesture);
priv->points = g_hash_table_new_full (NULL, NULL, NULL,
(GDestroyNotify) g_free);
(GDestroyNotify) free_point_data);
gtk_event_controller_set_event_mask (GTK_EVENT_CONTROLLER (gesture),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment