diff options
-rw-r--r-- | ivi-shell/ivi-layout.c | 1 |
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; } |