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>
This commit is contained in:
Pekka Paalanen
2019-11-06 12:07:23 +02:00
committed by Daniel Stone
parent e5e8188aa5
commit d2b9b5d1cc
+1
View File
@@ -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;