backend/session: Close fd in wlr_session_close_file
This was lost in the session_impl removal refactor.
This commit is contained in:
parent
ed1924800d
commit
e7515529ce
|
@ -310,6 +310,7 @@ void wlr_session_close_file(struct wlr_session *session,
|
||||||
if (libseat_close_device(session->seat_handle, dev->device_id) == -1) {
|
if (libseat_close_device(session->seat_handle, dev->device_id) == -1) {
|
||||||
wlr_log_errno(WLR_ERROR, "Failed to close device %d", dev->device_id);
|
wlr_log_errno(WLR_ERROR, "Failed to close device %d", dev->device_id);
|
||||||
}
|
}
|
||||||
|
close(dev->fd);
|
||||||
wl_list_remove(&dev->link);
|
wl_list_remove(&dev->link);
|
||||||
free(dev);
|
free(dev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue