libmm-glib: use g_list_free_full() when possible

This commit is contained in:
Aleksander Morgado
2012-03-15 14:14:46 +01:00
parent 48d5ac6682
commit 20acb274dc
+1 -2
View File
@@ -874,8 +874,7 @@ typedef struct {
static void
bearer_object_list_free (GList *list)
{
g_list_foreach (list, (GFunc)g_object_unref, NULL);
g_list_free (list);
g_list_free_full (list, (GDestroyNotify) g_object_unref);
}
static void