diff --git a/glib/garray.c b/glib/garray.c index f67099315..0272cad02 100644 --- a/glib/garray.c +++ b/glib/garray.c @@ -497,7 +497,7 @@ g_array_get_element_size (GArray *array) * the size of @array will be set to zero. * * If array contents point to dynamically-allocated memory, they should - * be freed separately if @free_seg is %TRUE and no @clear_func + * be freed separately if @free_segment is %TRUE and no @clear_func * function has been set for @array. * * This function is not thread-safe. If using a #GArray from multiple @@ -1776,9 +1776,9 @@ g_ptr_array_unref (GPtrArray *array) /** * g_ptr_array_free: * @array: a #GPtrArray - * @free_seg: if %TRUE the actual pointer array is freed as well + * @free_segment: if %TRUE the actual pointer array is freed as well * - * Frees the memory allocated for the #GPtrArray. If @free_seg is %TRUE + * Frees the memory allocated for the #GPtrArray. If @free_segment is %TRUE * it frees the memory block holding the elements as well. Pass %FALSE * if you want to free the #GPtrArray wrapper but preserve the * underlying array for use elsewhere. If the reference count of @array @@ -1786,10 +1786,10 @@ g_ptr_array_unref (GPtrArray *array) * size of @array will be set to zero. * * If array contents point to dynamically-allocated memory, they should - * be freed separately if @free_seg is %TRUE and no #GDestroyNotify + * be freed separately if @free_segment is %TRUE and no #GDestroyNotify * function has been set for @array. * - * Note that if the array is %NULL terminated and @free_seg is %FALSE + * Note that if the array is %NULL terminated and @free_segment is %FALSE * then this will always return an allocated %NULL terminated buffer. * If pdata is previously %NULL, a new buffer will be allocated. * @@ -1797,7 +1797,7 @@ g_ptr_array_unref (GPtrArray *array) * threads, use only the atomic g_ptr_array_ref() and g_ptr_array_unref() * functions. * - * Returns: (transfer full) (nullable): the pointer array if @free_seg is + * Returns: (transfer full) (nullable): the pointer array if @free_segment is * %FALSE, otherwise %NULL. The pointer array should be freed using g_free(). */ gpointer* diff --git a/glib/garray.h b/glib/garray.h index 5dc32b2a7..b3d8e68bc 100644 --- a/glib/garray.h +++ b/glib/garray.h @@ -187,7 +187,7 @@ GPtrArray* g_ptr_array_new_from_null_terminated_array (gpointer *data, GDestroyNotify element_free_func); GLIB_AVAILABLE_IN_ALL gpointer* g_ptr_array_free (GPtrArray *array, - gboolean free_seg); + gboolean free_segment); GLIB_AVAILABLE_IN_ALL GPtrArray* g_ptr_array_ref (GPtrArray *array); GLIB_AVAILABLE_IN_ALL