Document that g_variant_builder_add_value consumes a floating ref
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Dec 2010 05:19:45 +0000 (00:19 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 Dec 2010 05:19:45 +0000 (00:19 -0500)
Patch by Mikkel Kamstrup Erlandsen, bug
https://bugzilla.gnome.org/show_bug.cgi?id=634569

glib/gvariant.c

index 89374454ff845b57734209aa25a64dad135f2807..a613a5760faf0d730d8c57b898e5b0c8c1b0404f 100644 (file)
@@ -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