tests: fix test-shell init error path
authorPekka Paalanen <pekka.paalanen@collabora.com>
Wed, 6 Nov 2019 10:07:23 +0000 (12:07 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Thu, 21 Nov 2019 16:32:55 +0000 (16:32 +0000)
commite5e8188aa5925c07d001efa58ce3ac25ed5458ec
tree51ce8a7ff893865154d1f2754d5bf41ace731a5d
parentf38d4458f7bb0727332448eb4ed86b17a4725a35
tests: fix test-shell 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>
tests/weston-test-desktop-shell.c