ivi-shell: clean up remaining ivisurface during de-init

Signed-off-by: Harsha M M <harsha.manjulamallikarjun@in.bosch.com>
This commit is contained in:
Harsha M M 2018-08-03 19:22:16 +05:30 committed by Daniel Stone
parent 9b94a7d833
commit 1b470f96d2
1 changed files with 2 additions and 0 deletions

View File

@ -347,6 +347,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);
}