[glib/glib-2-24] fix glaring inaccuracy in GVariant docs



commit b5d200de7ef973bbbcf35fa55b5756a8480a8330
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri May 14 17:06:24 2010 +0200

    fix glaring inaccuracy in GVariant docs

 glib/gvariant.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/glib/gvariant.c b/glib/gvariant.c
index 5948ccd..811bfd6 100644
--- a/glib/gvariant.c
+++ b/glib/gvariant.c
@@ -2619,14 +2619,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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]