From 28dd5f017da581e32ded0390b4536a508b1bcfbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= Date: Mon, 17 Jul 2023 10:32:56 +0000 Subject: [PATCH] strfuncs: Add missing ownership annotations for returned string vectors --- glib/gstrfuncs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 391cf569b..22a608ddd 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -2411,8 +2411,8 @@ g_strchomp (gchar *string) * to represent empty elements, you'll need to check for the empty string * before calling g_strsplit(). * - * Returns: a newly-allocated %NULL-terminated array of strings. Use - * g_strfreev() to free it. + * Returns: (transfer full): a newly-allocated %NULL-terminated array of + * strings. Use g_strfreev() to free it. */ gchar** g_strsplit (const gchar *string, @@ -2492,8 +2492,8 @@ g_strsplit (const gchar *string, * Note that this function works on bytes not characters, so it can't be used * to delimit UTF-8 strings for anything but ASCII characters. * - * Returns: a newly-allocated %NULL-terminated array of strings. Use - * g_strfreev() to free it. + * Returns: (transfer full): a newly-allocated %NULL-terminated array of + * strings. Use g_strfreev() to free it. * * Since: 2.4 **/