array: Add a clear function
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 4 Jan 2012 07:41:47 +0000 (07:41 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 25 Jan 2012 04:25:38 +0000 (23:25 -0500)
commitc602a5f887233bdd75544a290023d10029ca4fda
tree432de32823383f14459593934754989a7fa042db
parent030b3f25e3e5c018247e18bf309e0454ba138898
array: Add a clear function

Like GPtrArray has a "free function" that can be used to free memory
associated to each pointer in the array, GArray would benefit from
having a "clear function" that can be used to clear the content of
each element of the array when it's removed, or when the entire array
is freed.

https://bugzilla.gnome.org/show_bug.cgi?id=667243
docs/reference/glib/glib-sections.txt
glib/garray.c
glib/garray.h
glib/glib.symbols
glib/tests/array-test.c