main: Fix open() for the polling driver

This commit is contained in:
Bastien Nocera
2014-11-19 21:25:57 +01:00
parent 0fedce7124
commit f1adea43f4

View File

@@ -68,8 +68,7 @@ iio_poll_accel_open (GUdevDevice *device,
drv_data->timeout_id = g_timeout_add (700, poll_orientation, drv_data);
g_source_set_name_by_id (drv_data->timeout_id, "poll_orientation");
g_clear_pointer (&drv_data, g_free);
return FALSE;
return TRUE;
}
static void