ivi-shell: fix init error path

This was forgetting to remove the compositor destroy listener if init failed,
which would lead to use-after-free on compositor tear-down. Found by
inspection.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dev
Pekka Paalanen 5 years ago committed by Daniel Stone
parent e5e8188aa5
commit d2b9b5d1cc
  1. 1
      ivi-shell/ivi-shell.c

@ -649,6 +649,7 @@ err_desktop:
weston_desktop_destroy(shell->desktop);
err_shell:
wl_list_remove(&shell->destroy_listener.link);
free(shell);
return IVI_FAILED;

Loading…
Cancel
Save