From c57c61c930896f278de61de170e57affc243e427 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 14 May 2010 17:06:24 +0200 Subject: [PATCH] fix glaring inaccuracy in GVariant docs --- glib/gvariant.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/glib/gvariant.c b/glib/gvariant.c index feb6c0b..fd4dea1 100644 --- a/glib/gvariant.c +++ b/glib/gvariant.c @@ -2809,14 +2809,10 @@ g_variant_make_array_type (GVariant *element) * * Ends the builder process and returns the constructed value. * - * This call automatically reduces the reference count on @builder by - * one, unless it has previously had g_variant_builder_no_autofree() - * called on it. Unless you've taken other actions, this is usually - * sufficient to free @builder. - * - * Even if additional references are held, it is not permissible to use - * @builder in any way after this call except for further reference - * counting operations. + * It is not permissible to use @builder in any way after this call + * except for reference counting operations (in the case of a + * heap-allocated #GVariantBuilder) or by reinitialising it with + * g_variant_builder_init() (in the case of stack-allocated). * * It is an error to call this function in any way that would create an * inconsistent value to be constructed (ie: insufficient number of -- 2.7.4