weston-test: Handle missing layer fini on shutdown path

BUG: layer_list is not empty after shutdown. Calls to
weston_layer_fini() are missing somwhere

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2025-07-04 15:34:42 +03:00 committed by Daniel Stone
parent 41bef3caaa
commit 208157f2e4

View file

@ -822,8 +822,7 @@ handle_compositor_destroy(struct wl_listener *listener,
data->wl_client = NULL;
wl_list_remove(&test->layer.view_list.link);
wl_list_remove(&test->layer.link);
weston_layer_fini(&test->layer);
weston_log_scope_destroy(test->log);
free(test);
@ -888,6 +887,8 @@ out_free:
free(to);
}
weston_layer_fini(&test->layer);
wl_list_remove(&test->output_destroyed_listener.link);
wl_list_remove(&test->destroy_listener.link);
free(test);