[PATCH weston] ivi-layout: Add missing free() in ivi_view_create
Quentin Glidic
sardemff7+wayland at sardemff7.net
Thu Mar 30 23:33:41 UTC 2017
On 3/29/17 6:13 PM, Raúl Peñacoba wrote:
> Signed-off-by: Raúl Peñacoba <raul.mikaop.zelda at gmail.com>
Nice catch:
Reviewed-by: Quentin Glidic <sardemff7+git at sardemff7.net>
And pushed:
5fc8d5eb..bd8dc0a2 master -> master
Thanks,
> ---
> ivi-shell/ivi-layout.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
> index 64e4ead8..298e18ea 100644
> --- a/ivi-shell/ivi-layout.c
> +++ b/ivi-shell/ivi-layout.c
> @@ -173,6 +173,7 @@ ivi_view_create(struct ivi_layout_layer *ivilayer,
> ivi_view->view = weston_view_create(ivisurf->surface);
> if (ivi_view->view == NULL) {
> weston_log("fails to allocate memory\n");
> + free(ivi_view);
> return NULL;
> }
>
>
--
Quentin “Sardem FF7” Glidic
More information about the wayland-devel
mailing list