desktop-shell: remove surface listener when surface is destroyed
authorTomohito Esaki <etom@igel.co.jp>
Wed, 31 Jan 2018 06:15:45 +0000 (15:15 +0900)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 31 Jan 2018 07:44:00 +0000 (09:44 +0200)
commitbf31f6cfb92a64650b286379c17535b836501dd0
tree909ef39ba5b70eb3c0ff1a17d4b067f30ee35e39
parent551b8054304159784cf4819737aae29d59bb1607
desktop-shell: remove surface listener when surface is destroyed

There may be race condition between destroying surface and destroying
output. If handle_output_destroy() is called after surface is destroyed,
illegal memory access occurs when surface destroy signals is
unregistered from the panel/background. This patch fixes this issue and
removes unnecessary initialization for panel surface listener.

Signed-off-by: Tomohito Esaki <etom@igel.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
desktop-shell/shell.c