From a07a5f82aafca64872691313e233295e591e7632 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 9 Nov 2012 09:32:03 +0100 Subject: [PATCH] GByteArray: Add missing transfer annotations Make g_byte_array_new() and g_byte_array_new_take() introspectable by adding missing transfer annotations to return value. Covered by tests in PyGObject. --- glib/garray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/garray.c b/glib/garray.c index bdcbc93..3bfbe9d 100644 --- a/glib/garray.c +++ b/glib/garray.c @@ -1512,7 +1512,7 @@ g_ptr_array_foreach (GPtrArray *array, * * Creates a new #GByteArray with a reference count of 1. * - * Returns: the new #GByteArray. + * Returns: (transfer full): the new #GByteArray. **/ GByteArray* g_byte_array_new (void) { @@ -1521,7 +1521,7 @@ GByteArray* g_byte_array_new (void) /** * g_byte_array_new_take: - * @data: (array length=len): byte data for the array + * @data: (transfer full) (array length=len): byte data for the array * @len: length of @data * * Create byte array containing the data. The data will be owned by the array -- 2.7.4