mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Plug mem leaks in gdbus tests & examples
Use "&s" instead of "s", and free the variant iters after use. Bug #618663.
This commit is contained in:
@@ -62,7 +62,7 @@ introspection_on_proxy_appeared (GDBusConnection *connection,
|
||||
&error);
|
||||
g_assert_no_error (error);
|
||||
g_assert (result != NULL);
|
||||
g_variant_get (result, "(s)", &xml_data);
|
||||
g_variant_get (result, "(&s)", &xml_data);
|
||||
|
||||
node_info = g_dbus_node_info_new_for_xml (xml_data, &error);
|
||||
g_assert_no_error (error);
|
||||
|
Reference in New Issue
Block a user