summaryrefslogtreecommitdiff
path: root/ivi-shell
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2022-11-04 12:38:19 +0200
committerMarius Vlad <marius.vlad@collabora.com>2022-11-07 14:02:20 +0200
commitcfbf2b0ab2ac7c50d8a1ea7645be3a9f3927825b (patch)
treecde7e52d9251ffd68c566f8866028212394e1ef6 /ivi-shell
parent75b6758fd24221e3def47c2f9c0ccca17e6f5e28 (diff)
downloadweston-cfbf2b0ab2ac7c50d8a1ea7645be3a9f3927825b.tar.gz
hmi-controller: Add missing removal of destroy listener
Shutting down the compositor gives us: Invalid write of size 8 at 0x4B1AEDB: wl_list_remove (wayland-util.c:56) by 0x4AF05BF: weston_signal_emit_mutable (signal.c:66) by 0x4ACBC2C: weston_compositor_destroy (compositor.c:8629) by 0x4864A4B: wet_main (main.c:3908) by 0x10915D: main (executable.c:33) Address 0x17435f20 is 224 bytes inside a block of size 384 free'd at 0x484617B: free (vg_replace_malloc.c:872) by 0x17718C7E: hmi_controller_destroy (hmi-controller.c:761) by 0x4AF059A: weston_signal_emit_mutable (signal.c:62) by 0x4ACBC2C: weston_compositor_destroy (compositor.c:8629) by 0x4864A4B: wet_main (main.c:3908) by 0x10915D: main (executable.c:33) Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'ivi-shell')
-rw-r--r--ivi-shell/hmi-controller.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ivi-shell/hmi-controller.c b/ivi-shell/hmi-controller.c
index 509ea73c..6c0df68a 100644
--- a/ivi-shell/hmi-controller.c
+++ b/ivi-shell/hmi-controller.c
@@ -736,6 +736,8 @@ hmi_controller_destroy(struct wl_listener *listener, void *data)
struct hmi_controller *hmi_ctrl =
container_of(listener, struct hmi_controller, destroy_listener);
+ wl_list_remove(&hmi_ctrl->destroy_listener.link);
+
wl_list_for_each_safe(link, next,
&hmi_ctrl->workspace_fade.layer_list, link) {
wl_list_remove(&link->link);