From 6a0a3a014fdb0338f5c909ad43986133e7c8ceb9 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Fri, 14 May 2021 14:37:46 +0300 Subject: [PATCH] tests: call weston_layer_fini() This ensures the layers are torn down properly. See commit: libweston: add weston_layer_fini() Signed-off-by: Pekka Paalanen --- tests/weston-test-desktop-shell.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/weston-test-desktop-shell.c b/tests/weston-test-desktop-shell.c index d9c39450..6733246f 100644 --- a/tests/weston-test-desktop-shell.c +++ b/tests/weston-test-desktop-shell.c @@ -170,6 +170,10 @@ shell_destroy(struct wl_listener *listener, void *data) weston_desktop_destroy(dts->desktop); weston_view_destroy(dts->background_view); weston_surface_destroy(dts->background_surface); + + weston_layer_fini(&dts->layer); + weston_layer_fini(&dts->background_layer); + free(dts); }