GNOME Bugzilla – Bug 654412
Documentation for g_variant_get_child_value unclear
Last modified: 2011-10-04 21:37:01 UTC
The documentation for g_variant_get_child_value is unclear wrt floating references - what happens if I get child of floating variant? Will it also have floating reference? Is it different if the parent isn't floating? The documentation should mention that the returned GVariant is never floating, and therefore has be unreffed in each and every case.
Created attachment 198262 [details] [review] 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().