mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-26 01:40:35 -05:00
backend/drm: Destroy page flips on backend destroy
When we destroy the backend, page flips will no longer be invoked meaning those won't clean up the page flips for us.
This commit is contained in:
parent
3aed24b8d4
commit
b06d58fa8b
3 changed files with 9 additions and 3 deletions
|
|
@ -39,6 +39,11 @@ static void backend_destroy(struct wlr_backend *backend) {
|
|||
destroy_drm_connector(conn);
|
||||
}
|
||||
|
||||
struct wlr_drm_page_flip *page_flip, *page_flip_tmp;
|
||||
wl_list_for_each_safe(page_flip, page_flip_tmp, &drm->page_flips, link) {
|
||||
drm_page_flip_destroy(page_flip);
|
||||
}
|
||||
|
||||
wlr_backend_finish(backend);
|
||||
|
||||
wl_list_remove(&drm->display_destroy.link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue