[glib/glib-2-34] GByteArray: Add missing transfer annotations



commit 1743c8460e6314c2fa7119cf17d7296e3fba13a1
Author: Martin Pitt <martinpitt gnome org>
Date:   Fri Nov 9 09:32:03 2012 +0100

    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.
    
    Cherry-picked from trunk commit a07a5f82aaf.

 glib/garray.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/glib/garray.c b/glib/garray.c
index b88ae7b..560d97a 100644
--- a/glib/garray.c
+++ b/glib/garray.c
@@ -1490,6 +1490,8 @@ g_ptr_array_foreach (GPtrArray *array,
  * @Returns: the new #GByteArray.
  *
  * Creates a new #GByteArray with a reference count of 1.
+ *
+ * Returns: (transfer full): the new #GByteArray.
  **/
 GByteArray* g_byte_array_new (void)
 {
@@ -1498,7 +1500,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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]