summaryrefslogtreecommitdiff
path: root/ivi-shell/ivi-layout.c
diff options
context:
space:
mode:
authorRaúl Peñacoba <raul.mikaop.zelda@gmail.com>2017-03-29 18:13:36 +0200
committerQuentin Glidic <sardemff7+git@sardemff7.net>2017-03-31 01:32:46 +0200
commitbd8dc0a255d079e6f977f0dc5b0a0b7045c18676 (patch)
tree0bdac08340814d2e28c7cd8aac0507769b5a10eb /ivi-shell/ivi-layout.c
parent5fc8d5eb9de0921801c3116b4a7c5f51b0c48d0e (diff)
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>
Diffstat (limited to 'ivi-shell/ivi-layout.c')
-rw-r--r--ivi-shell/ivi-layout.c1
1 files changed, 1 insertions, 0 deletions
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;
}