[PATCH] Weston: Free allocated cursors array when destroying
Kristian Høgsberg
hoegsberg at gmail.com
Tue May 29 06:56:00 PDT 2012
On Mon, May 28, 2012 at 02:07:25PM +0800, yan.wang at linux.intel.com wrote:
> From: Yan Wang <yan.wang at linux.intel.com>
>
> This array is allocated in create_cursors(). It should be freed in
> destroy_cursors().
Thanks, committed.
Kristian
> ---
> clients/window.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/clients/window.c b/clients/window.c
> index bab5d76..0c6f556 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -661,6 +661,7 @@ static void
> destroy_cursors(struct display *display)
> {
> wl_cursor_theme_destroy(display->cursor_theme);
> + free(display->cursors);
> }
>
> struct wl_cursor_image *
> --
> 1.7.7.6
>
More information about the wayland-devel
mailing list