[glib] GVariant: add a clarification to the docs
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GVariant: add a clarification to the docs
- Date: Tue, 4 Oct 2011 21:35:55 +0000 (UTC)
commit 4d5fe2704834e5038aa7a05a54445336cff831b6
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Oct 4 17:27:27 2011 -0400
GVariant: add a clarification to the docs
Add a note to the doc for g_viarnat_get_child_value() that the return
value is non-floating and must be freed with g_variant_unref().
https://bugzilla.gnome.org/show_bug.cgi?id=654412
glib/gvariant-core.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/gvariant-core.c b/glib/gvariant-core.c
index fab3a14..7e63acb 100644
--- a/glib/gvariant-core.c
+++ b/glib/gvariant-core.c
@@ -899,6 +899,9 @@ g_variant_n_children (GVariant *value)
* It is an error if @index_ is greater than the number of child items
* in the container. See g_variant_n_children().
*
+ * The returned value is never floating. You should free it with
+ * g_variant_unref() when you're done with it.
+ *
* This function is O(1).
*
* Since: 2.24
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]