mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend_destroy: Similiar logic like DRM backend
In the logic of the DRM backend in backend_destroy, wlr_backend_finish is called first, then the outputs are destroyed and then the display->destroy.link is removed from the list. This commit applies the same order to the headless backend.
This commit is contained in:
parent
e449c1dec8
commit
3dc5c7e5e7
1 changed files with 2 additions and 2 deletions
|
|
@ -34,14 +34,14 @@ static void backend_destroy(struct wlr_backend *wlr_backend) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wl_list_remove(&backend->display_destroy.link);
|
wlr_backend_finish(wlr_backend);
|
||||||
|
|
||||||
struct wlr_headless_output *output, *output_tmp;
|
struct wlr_headless_output *output, *output_tmp;
|
||||||
wl_list_for_each_safe(output, output_tmp, &backend->outputs, link) {
|
wl_list_for_each_safe(output, output_tmp, &backend->outputs, link) {
|
||||||
wlr_output_destroy(&output->wlr_output);
|
wlr_output_destroy(&output->wlr_output);
|
||||||
}
|
}
|
||||||
|
|
||||||
wlr_backend_finish(wlr_backend);
|
wl_list_remove(&backend->display_destroy.link);
|
||||||
|
|
||||||
free(backend);
|
free(backend);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue