mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-22 20:26:17 +01:00
tests: Fix some larger memory leaks in gdbus-proxy
Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
938f716c2f
commit
3d4a168715
@ -626,7 +626,9 @@ test_expected_interface (GDBusProxy *proxy)
|
||||
/* Also check that we complain if setting a cached property of the wrong type */
|
||||
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING,
|
||||
"*Trying to set property y of type s but according to the expected interface the type is y*");
|
||||
g_dbus_proxy_set_cached_property (proxy, "y", g_variant_new_string ("error_me_out!"));
|
||||
value = g_variant_ref_sink (g_variant_new_string ("error_me_out!"));
|
||||
g_dbus_proxy_set_cached_property (proxy, "y", value);
|
||||
g_variant_unref (value);
|
||||
g_test_assert_expected_messages ();
|
||||
}
|
||||
|
||||
|
@ -884,6 +884,7 @@ main (int argc, char *argv[])
|
||||
g_bus_unown_name (owner_id);
|
||||
|
||||
g_dbus_node_info_unref (introspection_data);
|
||||
g_hash_table_unref (properties);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user