[glib/glib-2-36] GVariant: fix transfer annotation
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-36] GVariant: fix transfer annotation
- Date: Tue, 16 Apr 2013 13:58:57 +0000 (UTC)
commit 7304bbd5d8ad56dcf3ee9fadf74f6104c49d4df7
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Fri Apr 12 17:25:15 2013 +0200
GVariant: fix transfer annotation
g_variant_new_from_bytes() returns a floating reference, so it
must be annotated (transfer none)
https://bugzilla.gnome.org/show_bug.cgi?id=697887
glib/gvariant-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gvariant-core.c b/glib/gvariant-core.c
index b96bc90..f823e01 100644
--- a/glib/gvariant-core.c
+++ b/glib/gvariant-core.c
@@ -498,7 +498,7 @@ g_variant_alloc (const GVariantType *type,
*
* A reference is taken on @bytes.
*
- * Returns: a new #GVariant with a floating reference
+ * Returns: (transfer none): a new #GVariant with a floating reference
*
* Since: 2.36
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]