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:
Philip Withnall 2018-02-23 19:23:27 +00:00
parent 2e117e24fc
commit 90d3337e1d

View File

@ -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