From b27ecf79e89db9ba26aa3dedc1a3ae1e6255cf40 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 28 Dec 2010 00:19:45 -0500 Subject: [PATCH] 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 file changed, 3 insertions(+) diff --git a/glib/gvariant.c b/glib/gvariant.c index 89374454f..a613a5760 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