summaryrefslogtreecommitdiff
path: root/src/linux/up-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/up-backend.c')
-rw-r--r--src/linux/up-backend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c
index 5e2b846..9f4d033 100644
--- a/src/linux/up-backend.c
+++ b/src/linux/up-backend.c
@@ -334,8 +334,7 @@ up_backend_coldplug (UpBackend *backend, UpDaemon *daemon)
native = l->data;
up_backend_device_add (backend, native);
}
- g_list_foreach (devices, (GFunc) g_object_unref, NULL);
- g_list_free (devices);
+ g_list_free_full (devices, (GDestroyNotify) g_object_unref);
}
return TRUE;