diff --git a/src/fake-input-accelerometer.c b/src/fake-input-accelerometer.c index e789c59..64d26fa 100644 --- a/src/fake-input-accelerometer.c +++ b/src/fake-input-accelerometer.c @@ -157,7 +157,7 @@ setup_uinput (OrientationData *data) return FALSE; } - data->uinput = fd; + data->uinput = g_steal_fd (&fd); return TRUE; }