mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
docs: Mention pointer semantics for g_array_set_clear_func()
Signed-off-by: Philip Withnall <withnall@endlessm.com> Reviewed-by: nobody
This commit is contained in:
parent
2e117e24fc
commit
90d3337e1d
@ -220,7 +220,8 @@ g_array_sized_new (gboolean zero_terminated,
|
||||
*
|
||||
* The @clear_func will be called when an element in the array
|
||||
* data segment is removed and when the array is freed and data
|
||||
* segment is deallocated as well.
|
||||
* segment is deallocated as well. @clear_func will be passed a
|
||||
* pointer to the element to clear, rather than the element itself.
|
||||
*
|
||||
* Note that in contrast with other uses of #GDestroyNotify
|
||||
* functions, @clear_func is expected to clear the contents of
|
||||
|
Loading…
Reference in New Issue
Block a user