Commit 7ce06928 authored by Jonas Ådahl's avatar Jonas Ådahl

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
parent ac799889
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment