From f53b3f3a162df20d69a1bb1b154d6d9fb1296844 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 11 Dec 2020 23:19:18 +0000 Subject: [PATCH] garray: Add missing (transfer) and (nullable) return annotations This commit only looks at the `Returns:` lines in the documentation, and has examined all of them in the file. Function arguments have not been checked. Signed-off-by: Philip Withnall Helps: #2227 --- glib/garray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/garray.c b/glib/garray.c index 4b6de199a..de720210c 100644 --- a/glib/garray.c +++ b/glib/garray.c @@ -1421,8 +1421,8 @@ g_ptr_array_unref (GPtrArray *array) * threads, use only the atomic g_ptr_array_ref() and g_ptr_array_unref() * functions. * - * Returns: the pointer array if @free_seg is %FALSE, otherwise %NULL. - * The pointer array should be freed using g_free(). + * Returns: (transfer full) (nullable): the pointer array if @free_seg is + * %FALSE, otherwise %NULL. The pointer array should be freed using g_free(). */ gpointer* g_ptr_array_free (GPtrArray *array,