diff options
Diffstat (limited to 'src/linux/up-device-unifying.c')
-rw-r--r-- | src/linux/up-device-unifying.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linux/up-device-unifying.c b/src/linux/up-device-unifying.c index 1819a8a..7d0dbf9 100644 --- a/src/linux/up-device-unifying.c +++ b/src/linux/up-device-unifying.c @@ -289,8 +289,7 @@ up_device_unifying_coldplug (UpDevice *device) up_daemon_start_poll (G_OBJECT (device), (GSourceFunc) up_device_unifying_refresh); ret = TRUE; out: - g_list_foreach (hidraw_list, (GFunc) g_object_unref, NULL); - g_list_free (hidraw_list); + g_list_free_full (hidraw_list, (GDestroyNotify) g_object_unref); if (parent != NULL) g_object_unref (parent); if (receiver != NULL) |