tests: Use g_list_free_full() convenience function

This commit is contained in:
Javier Jardón
2012-01-02 04:09:00 +01:00
parent 0ea48c4139
commit 08a2b910e5

View File

@ -351,8 +351,7 @@ do_popup_menu (GtkWidget *icon_list,
if (list)
{
path = (GtkTreePath*)list->data;
g_list_foreach (list->next, (GFunc) gtk_tree_path_free, NULL);
g_list_free (list);
g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);
}
}