Skip to content
Snippets Groups Projects
Commit 1c8d3eaf authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #6586: implement local g_slist_free_full for older glib versions

parent 0c603d83
No related branches found
No related tags found
No related merge requests found
......@@ -1401,6 +1401,17 @@ void sflphone_fill_history (void)
}
#if ! (GLIB_CHECK_VERSION(2,28,0))
static void
g_slist_free_full (GSList *list,
GDestroyNotify free_func)
{
g_slist_foreach (list, (GFunc) free_func, NULL);
g_slist_free (list);
}
#endif
static void hist_free_elt(gpointer list)
{
g_slist_free_full ((GSList *)list, g_free);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment