[PATCH weston 1/4] gl-renderer: fix leak on dmabuf image destroy

Quentin Glidic sardemff7+wayland at sardemff7.net
Sat Aug 5 14:24:12 UTC 2017


On 8/5/17 1:58 PM, Arnaud Vrac wrote:
> Signed-off-by: Arnaud Vrac <rawoul at gmail.com>
> ---
>   libweston/gl-renderer.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
> index da29b072..5768f05a 100644
> --- a/libweston/gl-renderer.c
> +++ b/libweston/gl-renderer.c
> @@ -337,6 +337,7 @@ dmabuf_image_destroy(struct dmabuf_image *image)
>   		linux_dmabuf_buffer_set_user_data(image->dmabuf, NULL, NULL);
>   
>   	wl_list_remove(&image->link);
> +	free(image);
>   }
>   
>   static const char *
> 

Good:
Reviewed-by: Quentin Glidic <sardemff7+git at sardemff7.net>

Thanks,

-- 

Quentin “Sardem FF7” Glidic


More information about the wayland-devel mailing list