GLib: marshaling a{sv} where the v is ay?

Colin Walters walters at verbum.org
Thu Sep 29 14:21:24 PDT 2005


On Fri, 2005-09-23 at 17:06 -0400, John (J5) Palmieri wrote:
+gboolean 
+my_object_process_variant_of_array_of_ints123 (MyObject *obj, GValue
*variant, GError **error)
+{
[...]
+
+  g_value_unset (variant);

That looks wrong to me; variant is an input parameter, you shouldn't
free or unset it, that should be done by the method invocation code.

Does that actually not crash?  If so we probably have a memleak
somewhere...valgrind should say.





More information about the dbus mailing list