gio/tests: Use g_list_free_full() convenience function

This commit is contained in:
Javier Jardón
2012-01-02 15:20:42 +01:00
parent 411259ddd3
commit ee044fd839
6 changed files with 14 additions and 28 deletions

View File

@@ -75,8 +75,7 @@ test_list (void)
g_assert (g_list_find_custom (types, plain, find_mime) != NULL);
g_assert (g_list_find_custom (types, xml, find_mime) != NULL);
g_list_foreach (types, (GFunc)g_free, NULL);
g_list_free (types);
g_list_free_full (types, g_free);
g_free (plain);
g_free (xml);