From 91147c6e80cf6cc1d99d4416d4ea030b4525dbc6 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Fri, 14 May 2021 14:37:46 +0300 Subject: [PATCH] kiosk-shell: call weston_layer_fini() This ensures the layers are torn down properly. See commit: libweston: add weston_layer_fini() Signed-off-by: Pekka Paalanen --- kiosk-shell/kiosk-shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kiosk-shell/kiosk-shell.c b/kiosk-shell/kiosk-shell.c index 8f0f49ec..12c1c279 100644 --- a/kiosk-shell/kiosk-shell.c +++ b/kiosk-shell/kiosk-shell.c @@ -1071,6 +1071,9 @@ kiosk_shell_destroy(struct wl_listener *listener, void *data) weston_desktop_destroy(shell->desktop); + weston_layer_fini(&shell->background_layer); + weston_layer_fini(&shell->normal_layer); + free(shell); }