mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-28 20:04:14 +02:00
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:
committed by
Matthias Clasen
parent
030b3f25e3
commit
c602a5f887
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user