aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-01-24 15:39:47 -0500
committerGitHub <noreply@github.com>2018-01-24 15:39:47 -0500
commita0351fb5d78e0161925ac035cd7e08f0f6423676 (patch)
treef7527c29b55a9d24a804ea4bd6faaa6f70b3ef1d
parent4dd214c0d30b4ac0e6645b56faf28fe05cd4e8a2 (diff)
parent72507f9820df9da3a7feadc722675c42e59e58a6 (diff)
Merge pull request #584 from VincentVanlaer/drm-segfault
Clean up session signal handler on drm init fail
-rw-r--r--backend/drm/backend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index 112b2b61..c0e49f18 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -168,6 +168,7 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
return &drm->backend;
error_event:
+ wl_list_remove(&drm->session_signal.link);
wl_event_source_remove(drm->drm_event);
error_fd:
wlr_session_close_file(drm->session, drm->fd);