From e7515529ce930913998e1482b25bcf90ec1a7aad Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sun, 18 Apr 2021 17:50:23 +0200 Subject: backend/session: Close fd in wlr_session_close_file This was lost in the session_impl removal refactor. --- backend/session/session.c | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3