tests: Use g_list_free_full() convenience function
This commit is contained in:
@ -351,8 +351,7 @@ do_popup_menu (GtkWidget *icon_list,
|
|||||||
if (list)
|
if (list)
|
||||||
{
|
{
|
||||||
path = (GtkTreePath*)list->data;
|
path = (GtkTreePath*)list->data;
|
||||||
g_list_foreach (list->next, (GFunc) gtk_tree_path_free, NULL);
|
g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);
|
||||||
g_list_free (list);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user