Bug 158725 - free linked list with data
authorRyan Lortie <desrt@desrt.ca>
Fri, 16 Oct 2009 10:19:06 +0000 (12:19 +0200)
committerRyan Lortie <desrt@desrt.ca>
Thu, 28 Oct 2010 15:20:57 +0000 (11:20 -0400)
commit7c184df292f7552423fa7931c843b2f1949c1455
tree06b73239ee5a4718e5620a64627c5fda1271aaac
parent4baad1acbff936284c5367afdb4494cf081ee394
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.
docs/reference/glib/glib-sections.txt
glib/glib.symbols
glib/glist.c
glib/glist.h
glib/gslist.c
glib/gslist.h
glib/tests/list.c