[PATCH] cursor: free the array from which images are linked

Emilio Pozuelo Monfort pochu27 at gmail.com
Wed Mar 18 04:49:06 PDT 2015


On 18/03/15 01:53, Emmanuel Gil Peyrot wrote:
> ---
>   cursor/wayland-cursor.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/cursor/wayland-cursor.c b/cursor/wayland-cursor.c
> index 1a5393a..410a0d4 100644
> --- a/cursor/wayland-cursor.c
> +++ b/cursor/wayland-cursor.c
> @@ -190,6 +190,7 @@ wl_cursor_destroy(struct wl_cursor *cursor)
>   	for (i = 0; i < cursor->image_count; i++)
>   		wl_cursor_image_destroy(cursor->images[i]);
>
> +	free(cursor->images);
>   	free(cursor->name);
>   	free(cursor);
>   }
>

Looks good.

Reviewed-by: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>

Cheers,
Emilio


More information about the wayland-devel mailing list