mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
backend/drm: free fb later
since 4932e0d347f("backend/drm: ensure plane surfaces are cleaned up on shutdown") at finish_drm_resources called drm_plane_finsh_surface has already free the fb Signed-off-by: zhoulei zhoulei@kylinos.cn Signed-off-by: sunzhguy <sunzhigang1@kylinos.cn>
This commit is contained in:
parent
92dabc3a01
commit
c9c9dd6a5b
1 changed files with 5 additions and 5 deletions
|
@ -41,11 +41,6 @@ static void backend_destroy(struct wlr_backend *backend) {
|
||||||
|
|
||||||
wlr_backend_finish(backend);
|
wlr_backend_finish(backend);
|
||||||
|
|
||||||
struct wlr_drm_fb *fb, *fb_tmp;
|
|
||||||
wl_list_for_each_safe(fb, fb_tmp, &drm->fbs, link) {
|
|
||||||
drm_fb_destroy(fb);
|
|
||||||
}
|
|
||||||
|
|
||||||
wl_list_remove(&drm->display_destroy.link);
|
wl_list_remove(&drm->display_destroy.link);
|
||||||
wl_list_remove(&drm->session_destroy.link);
|
wl_list_remove(&drm->session_destroy.link);
|
||||||
wl_list_remove(&drm->session_active.link);
|
wl_list_remove(&drm->session_active.link);
|
||||||
|
@ -59,6 +54,11 @@ static void backend_destroy(struct wlr_backend *backend) {
|
||||||
|
|
||||||
finish_drm_resources(drm);
|
finish_drm_resources(drm);
|
||||||
|
|
||||||
|
struct wlr_drm_fb *fb, *fb_tmp;
|
||||||
|
wl_list_for_each_safe(fb, fb_tmp, &drm->fbs, link) {
|
||||||
|
drm_fb_destroy(fb);
|
||||||
|
}
|
||||||
|
|
||||||
free(drm->name);
|
free(drm->name);
|
||||||
wlr_session_close_file(drm->session, drm->dev);
|
wlr_session_close_file(drm->session, drm->dev);
|
||||||
wl_event_source_remove(drm->drm_event);
|
wl_event_source_remove(drm->drm_event);
|
||||||
|
|
Loading…
Reference in a new issue