gesture: Don't leak target widgets

This was broken when we started tracking event targets
in dcbecdac31.

Fixes: #2801
This commit is contained in:
Matthias Clasen 2020-05-30 09:15:19 -04:00
parent 8bab7b237c
commit 0d69c42320

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;