native: Actually close input device fds

Don't only release it, also close the fd so that we don't leak it.

https://bugzilla.gnome.org/show_bug.cgi?id=752753
This commit is contained in:
Jonas Ådahl 2015-07-23 11:18:06 +08:00
parent ac79988939
commit 7ce06928e2

View File

@ -223,7 +223,7 @@ on_evdev_device_close (int fd,
if (!get_device_info_from_fd (fd, &major, &minor))
{
g_warning ("Could not get device info for fd %d: %m", fd);
return;
goto out;
}
if (!login1_session_call_release_device_sync (self->session_proxy,
@ -232,6 +232,9 @@ on_evdev_device_close (int fd,
{
g_warning ("Could not release device %d,%d: %s", major, minor, error->message);
}
out:
close (fd);
}
static void