[glib] Document that g_variant_builder_add_value consumes a floating ref
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Document that g_variant_builder_add_value consumes a floating ref
- Date: Tue, 28 Dec 2010 05:20:36 +0000 (UTC)
commit b27ecf79e89db9ba26aa3dedc1a3ae1e6255cf40
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 28 00:19:45 2010 -0500
Document that g_variant_builder_add_value consumes a floating ref
Patch by Mikkel Kamstrup Erlandsen, bug
https://bugzilla.gnome.org/show_bug.cgi?id=634569
glib/gvariant.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/gvariant.c b/glib/gvariant.c
index 8937445..a613a57 100644
--- a/glib/gvariant.c
+++ b/glib/gvariant.c
@@ -3058,6 +3058,9 @@ g_variant_builder_make_room (struct stack_builder *builder)
* types or number of items in a tuple, putting more than one value into
* a variant, etc.
*
+ * If @value is a floating reference (see g_variant_ref_sink()),
+ * the @builder instance takes ownership of @value.
+ *
* Since: 2.24
**/
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]