forked from AuroraMiddleware/gtk
gesture: Don't leak target widgets
This was broken when we started tracking event targets
in dcbecdac31
.
Fixes: #2801
This commit is contained in:
parent
8bab7b237c
commit
0d69c42320
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user