libweston: fix output destroy signal list corruption
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 22 May 2018 10:15:58 +0000 (13:15 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 22 May 2018 10:15:58 +0000 (13:15 +0300)
commit944fae8887642982473e1a541b8b37aef5c61d51
tree1fb6e4edb0d3fb8b2c71f0ce1a819e36d0ded11a
parent99628000cbb20113dae3e2bd8833e512286ad308
libweston: fix output destroy signal list corruption

This issue was likely introduced by "libweston: add
weston_view_set_output()" which forgot to ensure the output destroy
listener is removed when weston_view is destroyed, leading to freed
memory being left into the list.

This was quite easy to trigger by opening and closing an application
window a few times, leading various memory corruption symptoms.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Ian Ray <ian.ray@ge.com>
libweston/compositor.c