Use g_list_free_full/g_slist_free_full