do_volume_tests (drive, volume);
}
- g_list_foreach (volumes, (GFunc)g_object_unref, NULL);
- g_list_free (volumes);
+ g_list_free_full (volumes, g_object_unref);
}
static void
do_drive_tests (drive);
}
- g_list_foreach (drives, (GFunc)g_object_unref, NULL);
- g_list_free (drives);
+ g_list_free_full (drives, g_object_unref);
}
static void
g_object_unref (drive);
}
- g_list_foreach (volumes, (GFunc)g_object_unref, NULL);
- g_list_free (volumes);
+ g_list_free_full (volumes, g_object_unref);
}
static void
g_object_unref (volume);
}
- g_list_foreach (mounts, (GFunc)g_object_unref, NULL);
- g_list_free (mounts);
+ g_list_free_full (mounts, g_object_unref);
}
int
main (int argc, char *argv[])
g_setenv ("GIO_USE_VFS", "local", FALSE);
- g_type_init ();
-
g_test_init (&argc, &argv, NULL);
monitor = g_volume_monitor_get ();