[PATCH weston] ivi-layout: Add missing free() in ivi_view_create
Ucan, Emre (ADITG/SW1)
eucan at de.adit-jv.com
Thu Mar 30 06:43:50 UTC 2017
Hi,
Thank you for your patch.
Reviewed-by: Emre Ucan <eucan at de.adit-jv.com>
Best regards
Emre Ucan
Software Group I (ADITG/SW1)
Tel. +49 5121 49 6937
> -----Original Message-----
> From: wayland-devel [mailto:wayland-devel-
> bounces at lists.freedesktop.org] On Behalf Of Raúl Peñacoba
> Sent: Mittwoch, 29. März 2017 18:14
> To: wayland-devel at lists.freedesktop.org
> Cc: Raúl Peñacoba
> Subject: [PATCH weston] ivi-layout: Add missing free() in ivi_view_create
>
> Signed-off-by: Raúl Peñacoba <raul.mikaop.zelda at gmail.com>
> ---
> 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;
> }
>
> --
> 2.12.1
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list