diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-06-24 16:41:48 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-06-24 16:41:48 +0200 |
commit | bab2431c1e7406860179267faa54f35ad82131fe (patch) | |
tree | 2a78f500c4eee1d9f388b973ced874413357a4ab /src/linux/up-device-unifying.c | |
parent | dbb9bead6d3b9e70a5d58019b1615d2a6fba5312 (diff) | |
download | upower-bab2431c1e7406860179267faa54f35ad82131fe.tar.gz |
linux: Simplify list freeing
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) |