Bug 158725 - free linked list with data

Add some helpers for freeing a linked list along with its elements by
providing a GDestroyNotify to call on each of them.

Add a test.

Based on a patch from Cosimo Cecchi.
This commit is contained in:
Ryan Lortie
2009-10-16 12:19:06 +02:00
parent 4baad1acbf
commit 7c184df292
7 changed files with 109 additions and 1 deletions

View File

@@ -1992,6 +1992,7 @@ g_list_remove_link
g_list_delete_link
g_list_remove_all
g_list_free
g_list_free_full
<SUBSECTION>
g_list_alloc
@@ -2048,6 +2049,7 @@ g_slist_remove_link
g_slist_delete_link
g_slist_remove_all
g_slist_free
g_slist_free_full
g_slist_free_1
g_slist_free1