Use the new g_[s]list_free_full() instead of foreach() and free()

This commit is contained in:
Michael Natterer
2011-03-07 17:10:18 +01:00
parent 514a5548cd
commit fcfb7cf160
56 changed files with 97 additions and 187 deletions

View File

@ -552,8 +552,7 @@ parse_info_free (ParseInfo *info)
g_slist_free (info->tag_stack);
g_slist_free (info->states);
g_list_foreach (info->spans, (GFunc) text_span_free, NULL);
g_list_free (info->spans);
g_list_free_full (info->spans, (GDestroyNotify) text_span_free);
}
static void