GNOME Bugzilla – Bug 755374
g_variant_get_child(): flatten-first logic on '&'
Last modified: 2015-09-29 14:17:59 UTC
Copy the flatten-first logic from g_variant_get(), and for the same reason: if the user is requesting a direct pointer access to a tree-based child inside of argument to this function then that child could disappear later. Forcing serialisation means that the pointer will remain valid as long as the passed-in instance exists, which is the usual expectation with GVariant API.
Created attachment 311804 [details] [review] g_variant_get_child(): flatten-first logic on '&'
Review of attachment 311804 [details] [review]: Makes sense to me. Thanks for adding this so quickly!
Attachment 311804 [details] pushed as 56b164a - g_variant_get_child(): flatten-first logic on '&'