[PATCH] server: Release additional_shm_formats array at display destruction

Kristian Høgsberg hoegsberg at gmail.com
Thu Aug 8 13:51:38 PDT 2013


On Thu, Aug 08, 2013 at 10:31:56AM +0200, Tomeu Vizoso wrote:
> ---
>  src/wayland-server.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/wayland-server.c b/src/wayland-server.c
> index 1498d51..771309f 100644
> --- a/src/wayland-server.c
> +++ b/src/wayland-server.c
> @@ -746,6 +746,8 @@ wl_display_destroy(struct wl_display *display)
>  	wl_list_for_each_safe(global, gnext, &display->global_list, link)
>  		free(global);
>  
> +	wl_array_release(&display->additional_shm_formats);
> +
>  	free(display);
>  }

Ah, yup, better free those bytes.

Kristian

> -- 
> 1.8.3.1
> 
> _______________________________________________
> 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