From f53beb8fb94e5a096bc9e2872b2995a46598dac6 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 29 May 2015 16:32:52 -0500 Subject: [PATCH] compositor-wayland: Use the correct list pointer when freeing shm buffers The wl_list_for_each operation on the free_buffers list should use free_link not link, which is a different list. This fixes a crash when entering fullscreen mode when using the pixman renderer on the wayland back-end. Signed-off-by: Derek Foreman --- src/compositor-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 35f1de07..ddad3b12 100644 --- a/src/compositor-wayland.c +++ b/src/compositor-wayland.c @@ -740,7 +740,7 @@ wayland_output_resize_surface(struct wayland_output *output) } /* Throw away any remaining SHM buffers */ - wl_list_for_each_safe(buffer, next, &output->shm.free_buffers, link) + wl_list_for_each_safe(buffer, next, &output->shm.free_buffers, free_link) wayland_shm_buffer_destroy(buffer); /* These will get thrown away when they get released */ wl_list_for_each(buffer, &output->shm.buffers, link)