aboutsummaryrefslogtreecommitdiff
path: root/backend/session
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2021-04-18 17:50:23 +0200
committerSimon Ser <contact@emersion.fr>2021-04-18 18:32:24 +0200
commite7515529ce930913998e1482b25bcf90ec1a7aad (patch)
tree540b4999d6d0bb1e9eea9ca746d21fd4c8d80176 /backend/session
parented1924800de905f5462c8cc6e36fbc60b69d3030 (diff)
backend/session: Close fd in wlr_session_close_file
This was lost in the session_impl removal refactor.
Diffstat (limited to 'backend/session')
-rw-r--r--backend/session/session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/session/session.c b/backend/session/session.c
index 63bca140..314f931e 100644
--- a/backend/session/session.c
+++ b/backend/session/session.c
@@ -310,6 +310,7 @@ void wlr_session_close_file(struct wlr_session *session,
if (libseat_close_device(session->seat_handle, dev->device_id) == -1) {
wlr_log_errno(WLR_ERROR, "Failed to close device %d", dev->device_id);
}
+ close(dev->fd);
wl_list_remove(&dev->link);
free(dev);
}