[PATCH weston] compositor-wayland: Use the correct list pointer when freeing shm buffers

Bryce Harrington bryce at osg.samsung.com
Fri Jul 10 18:48:44 PDT 2015


On Fri, May 29, 2015 at 04:32:52PM -0500, Derek Foreman wrote:
> 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 <derekf at osg.samsung.com>

Thanks, pushed:
To ssh://git.freedesktop.org/git/wayland/weston
   b2d79d5..f53beb8  master -> master

> ---
>  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 935701a..e4a1b1a 100644
> --- a/src/compositor-wayland.c
> +++ b/src/compositor-wayland.c
> @@ -735,7 +735,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)
> -- 
> 2.1.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list