Commit 30ccd6f0 authored by Debarshi Ray's avatar Debarshi Ray

docs: Use the correct terminology for g_array_free

GArray uses the term clear_func (eg., g_array_set_clear_func), while
element_free_func comes from GPtrArray.

!348
parent bec7e2fa
......@@ -319,11 +319,11 @@ g_array_get_element_size (GArray *array)
*
* Frees the memory allocated for the #GArray. If @free_segment is
* %TRUE it frees the memory block holding the elements as well and
* also each element if @array has a @element_free_func set. Pass
* %FALSE if you want to free the #GArray wrapper but preserve the
* underlying array for use elsewhere. If the reference count of @array
* is greater than one, the #GArray wrapper is preserved but the size
* of @array will be set to zero.
* also each element if @array has a @clear_func set. Pass %FALSE if
* you want to free the #GArray wrapper but preserve the underlying
* array for use elsewhere. If the reference count of @array is
* greater than one, the #GArray wrapper is preserved but the size of
* @array will be set to zero.
*
* If array elements contain dynamically-allocated memory, they should
* be freed separately.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment