forked from AuroraMiddleware/gtk
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:
commit
bb7f6ed544
@ -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