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
This commit is contained in:
Emmanuele Bassi
2012-01-04 07:41:47 +00:00
committed by Matthias Clasen
parent 030b3f25e3
commit c602a5f887
5 changed files with 103 additions and 10 deletions

View File

@@ -2354,6 +2354,7 @@ g_array_sort
g_array_sort_with_data
g_array_index
g_array_set_size
g_array_set_clear_func
g_array_free
</SECTION>