Merge branch 'fix-gesture-leak' into 'master'

gesture: Don't leak target widgets

Closes #2801

See merge request GNOME/gtk!1986
This commit is contained in:
Matthias Clasen 2020-05-30 15:12:05 +00:00
commit bb7f6ed544

View File

@ -501,7 +501,7 @@ _gtk_gesture_update_point (GtkGesture *gesture,
gdk_event_unref (data->event);
data->event = gdk_event_ref ((GdkEvent *)event);
data->target = g_object_ref (target);
g_set_object (&data->target, target);
_update_touchpad_deltas (data);
data->widget_x = x + data->accum_dx;
data->widget_y = y + data->accum_dy;