garray: Add missing (transfer full) introspection annotations

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-05-27 14:27:12 +01:00
parent 93bf87528d
commit a9321c3652

View File

@ -1171,8 +1171,9 @@ g_ptr_array_new (void)
* g_assert (chunk_buffer->len == 0); * g_assert (chunk_buffer->len == 0);
* ]| * ]|
* *
* Returns: (transfer full): the element data, which should be * Returns: (transfer full) (nullable): the element data, which should be
* freed using g_free(). * freed using g_free(). This may be %NULL if the array doesnt have any
* elements (i.e. if `*len` is zero).
* *
* Since: 2.64 * Since: 2.64
*/ */
@ -1309,7 +1310,7 @@ g_array_copy (GArray *array)
* either via g_ptr_array_unref(), when g_ptr_array_free() is called with * either via g_ptr_array_unref(), when g_ptr_array_free() is called with
* @free_segment set to %TRUE or when removing elements. * @free_segment set to %TRUE or when removing elements.
* *
* Returns: A new #GPtrArray * Returns: (transfer full): A new #GPtrArray
* *
* Since: 2.22 * Since: 2.22
*/ */
@ -1333,7 +1334,7 @@ g_ptr_array_new_with_free_func (GDestroyNotify element_free_func)
* g_ptr_array_unref(), when g_ptr_array_free() is called with * g_ptr_array_unref(), when g_ptr_array_free() is called with
* @free_segment set to %TRUE or when removing elements. * @free_segment set to %TRUE or when removing elements.
* *
* Returns: A new #GPtrArray * Returns: (transfer full): A new #GPtrArray
* *
* Since: 2.30 * Since: 2.30
*/ */