summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsha M M <harsha.manjulamallikarjun@in.bosch.com>2018-08-07 19:05:03 +0530
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2018-08-10 13:23:14 +0300
commit46cbd0a7f5271cd0832e6d8687829844f40f89cd (patch)
tree7a71a49d9401128fd95f1a5a845431189b9d2b67
parentb8b2c72709a16382fe7a75a3476236bd31c0e54c (diff)
downloadweston-46cbd0a7f5271cd0832e6d8687829844f40f89cd.tar.gz
weston-46cbd0a7f5271cd0832e6d8687829844f40f89cd.tar.bz2
weston-46cbd0a7f5271cd0832e6d8687829844f40f89cd.zip
ivi-shell: Remove the compositor destory listener from list during de-init
During de-init ensure removal of compositor destroy notification from list. Otherwise a dongling pointer is left behind which will affect other plugins. Signed-off-by: Harsha M M <harsha.manjulamallikarjun@in.bosch.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r--ivi-shell/ivi-shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ivi-shell/ivi-shell.c b/ivi-shell/ivi-shell.c
index 0235d266..58f53bc5 100644
--- a/ivi-shell/ivi-shell.c
+++ b/ivi-shell/ivi-shell.c
@@ -358,6 +358,8 @@ shell_destroy(struct wl_listener *listener, void *data)
container_of(listener, struct ivi_shell, destroy_listener);
struct ivi_shell_surface *ivisurf, *next;
+ wl_list_remove(&shell->destroy_listener.link);
+
text_backend_destroy(shell->text_backend);
input_panel_destroy(shell);