[PATCH weston 3/3] ivi-shell: clean up remaining ivisurface during de-init

Harsha M M harsha.manjulamallikarjun at in.bosch.com
Tue Aug 7 13:35:04 UTC 2018


Signed-off-by: Harsha M M <harsha.manjulamallikarjun at 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



More information about the wayland-devel mailing list