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

Signed-off-by: Harsha M M <harsha.manjulamallikarjun@in.bosch.com>
dev
Harsha M M 6 years ago committed by Daniel Stone
parent 9b94a7d833
commit 1b470f96d2
  1. 2
      ivi-shell/ivi-shell.c

@ -347,6 +347,8 @@ shell_destroy(struct wl_listener *listener, void *data)
wl_list_remove(&shell->wake_listener.link); wl_list_remove(&shell->wake_listener.link);
wl_list_for_each_safe(ivisurf, next, &shell->ivi_surface_list, 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); wl_list_remove(&ivisurf->link);
free(ivisurf); free(ivisurf);
} }

Loading…
Cancel
Save