mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-30 00:15:58 +01:00
Merge pull request #584 from VincentVanlaer/drm-segfault
Clean up session signal handler on drm init fail
This commit is contained in:
commit
a0351fb5d7
1 changed files with 1 additions and 0 deletions
|
@ -168,6 +168,7 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
|
||||||
return &drm->backend;
|
return &drm->backend;
|
||||||
|
|
||||||
error_event:
|
error_event:
|
||||||
|
wl_list_remove(&drm->session_signal.link);
|
||||||
wl_event_source_remove(drm->drm_event);
|
wl_event_source_remove(drm->drm_event);
|
||||||
error_fd:
|
error_fd:
|
||||||
wlr_session_close_file(drm->session, drm->fd);
|
wlr_session_close_file(drm->session, drm->fd);
|
||||||
|
|
Loading…
Reference in a new issue