mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 02:28:08 +02:00
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:
parent
41bef3caaa
commit
208157f2e4
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue