ivi-layout: Add missing free() in ivi_view_create

Signed-off-by: Raúl Peñacoba <raul.mikaop.zelda@gmail.com>
Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
dev
Raúl Peñacoba 8 years ago committed by Quentin Glidic
parent 5fc8d5eb9d
commit bd8dc0a255
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
  1. 1
      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); ivi_view->view = weston_view_create(ivisurf->surface);
if (ivi_view->view == NULL) { if (ivi_view->view == NULL) {
weston_log("fails to allocate memory\n"); weston_log("fails to allocate memory\n");
free(ivi_view);
return NULL; return NULL;
} }

Loading…
Cancel
Save