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
This commit is contained in:
Ryan Lortie 2011-10-04 17:27:27 -04:00
parent 6b566e1d0b
commit 4d5fe27048

View File

@ -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