From a7e0e717a9f403fe151391a41b4a132b8336d2f7 Mon Sep 17 00:00:00 2001 From: Leandro Ribeiro Date: Thu, 8 Oct 2020 17:14:08 -0300 Subject: [PATCH] tests: remove destroy_listener when destroying test-desktop-shell When destroying the shell we need to remove the listeners as well. The test-desktop-shell was forgetting to do this. Signed-off-by: Leandro Ribeiro --- tests/weston-test-desktop-shell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/weston-test-desktop-shell.c b/tests/weston-test-desktop-shell.c index f3d881b8..f5ef9f68 100644 --- a/tests/weston-test-desktop-shell.c +++ b/tests/weston-test-desktop-shell.c @@ -165,6 +165,8 @@ shell_destroy(struct wl_listener *listener, void *data) dts = container_of(listener, struct desktest_shell, compositor_destroy_listener); + wl_list_remove(&dts->compositor_destroy_listener.link); + weston_desktop_destroy(dts->desktop); weston_view_destroy(dts->background_view); weston_surface_destroy(dts->background_surface);