From 5e395fb676bc5baba7d5bf934ffde3384a59f4a7 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 22 Jul 2014 01:38:21 +0200 Subject: [PATCH] wayland: Fix infinite loop in touch_handle_cancel_event() https://bugzilla.gnome.org/show_bug.cgi?id=733631 --- src/wayland/meta-wayland-touch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c index 492218631..012a6a5b3 100644 --- a/src/wayland/meta-wayland-touch.c +++ b/src/wayland/meta-wayland-touch.c @@ -361,7 +361,7 @@ touch_send_frame_event (MetaWaylandTouch *touch) { GList *surfaces, *s; - surfaces = s = touch_get_surfaces (touch, TRUE); + surfaces = touch_get_surfaces (touch, TRUE); for (s = surfaces; s; s = s->next) { @@ -452,7 +452,7 @@ touch_handle_cancel_event (MetaWaylandTouch *touch, surfaces = s = touch_get_surfaces (touch, FALSE); - while (s) + for (s = surfaces; s; s = s->next) { MetaWaylandTouchSurface *touch_surface = s->data; struct wl_resource *resource;