Signed-off-by: Harsha M M <harsha.manjulamallikar...@in.bosch.com>
---
 ivi-shell/ivi-shell.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ivi-shell/ivi-shell.c b/ivi-shell/ivi-shell.c
index 58f53bc..92e8f17 100644
--- a/ivi-shell/ivi-shell.c
+++ b/ivi-shell/ivi-shell.c
@@ -366,6 +366,8 @@ shell_destroy(struct wl_listener *listener, void *data)
        wl_list_remove(&shell->wake_listener.link);
 
        wl_list_for_each_safe(ivisurf, next, &shell->ivi_surface_list, link) {
+               if (ivisurf->layout_surface != NULL)
+                       layout_surface_cleanup(ivisurf);
                wl_list_remove(&ivisurf->link);
                free(ivisurf);
        }
-- 
2.7.4

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to