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:
committed by
Daniel Stone
parent
e5e8188aa5
commit
d2b9b5d1cc
@@ -649,6 +649,7 @@ err_desktop:
|
|||||||
weston_desktop_destroy(shell->desktop);
|
weston_desktop_destroy(shell->desktop);
|
||||||
|
|
||||||
err_shell:
|
err_shell:
|
||||||
|
wl_list_remove(&shell->destroy_listener.link);
|
||||||
free(shell);
|
free(shell);
|
||||||
|
|
||||||
return IVI_FAILED;
|
return IVI_FAILED;
|
||||||
|
|||||||
Reference in New Issue
Block a user