summaryrefslogtreecommitdiff
path: root/core/glib2/gvariant-fix-annotation.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-28 01:12:25 -0700
committerroot <root@rshg054.dnsready.net>2013-04-28 01:12:25 -0700
commitf38edbff3878008c8b2ae1ca8a496c349763017b (patch)
tree4f9ff6891842a0a6dcd9c0c8424ec8f16527e023 /core/glib2/gvariant-fix-annotation.patch
parenta27a6af53095da314eca1d33911f72775dfc2bce (diff)
Sun Apr 28 01:11:42 PDT 2013
Diffstat (limited to 'core/glib2/gvariant-fix-annotation.patch')
-rw-r--r--core/glib2/gvariant-fix-annotation.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/glib2/gvariant-fix-annotation.patch b/core/glib2/gvariant-fix-annotation.patch
new file mode 100644
index 000000000..ee10312c8
--- /dev/null
+++ b/core/glib2/gvariant-fix-annotation.patch
@@ -0,0 +1,25 @@
+From 7304bbd5d8ad56dcf3ee9fadf74f6104c49d4df7 Mon Sep 17 00:00:00 2001
+From: Giovanni Campagna <gcampagna@src.gnome.org>
+Date: Fri, 12 Apr 2013 15:25:15 +0000
+Subject: 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
+---
+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
+ */
+--
+cgit v0.9.1