[vala] glib-2.0: make VariantDict.end return a floating reference
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: make VariantDict.end return a floating reference
- Date: Tue, 12 Aug 2014 18:13:28 +0000 (UTC)
commit 737c0f5cd6aeb78f0bf739933623c1628fed21a2
Author: XZS <d f fischer web de>
Date: Mon Aug 11 14:29:51 2014 +0200
glib-2.0: make VariantDict.end return a floating reference
The underlying implementation returns a floating reference. Reflecting
this in the vapi silences the warning about g_variant_unref called once
too many.
Fixes bug 734611
vapi/glib-2.0.vapi | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 13ae5e2..4cd12f6 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -5051,6 +5051,7 @@ namespace GLib {
public void insert_value (string key, GLib.Variant value);
public bool remove (string key);
public void clear ();
+ [CCode (returns_floating_reference = true)]
public GLib.Variant end ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]