mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
gio/tests/gdbus-peer: Unref cached property GVariant value
Helps with: https://gitlab.gnome.org/GNOME/glib/-/issues/333
This commit is contained in:
parent
1da208cddc
commit
e268ff39b6
@ -843,6 +843,7 @@ do_test_peer (void)
|
|||||||
error = NULL;
|
error = NULL;
|
||||||
value = g_dbus_proxy_get_cached_property (proxy, "PeerProperty");
|
value = g_dbus_proxy_get_cached_property (proxy, "PeerProperty");
|
||||||
g_assert_cmpstr (g_variant_get_string (value, NULL), ==, "ThePropertyValue");
|
g_assert_cmpstr (g_variant_get_string (value, NULL), ==, "ThePropertyValue");
|
||||||
|
g_clear_pointer (&value, g_variant_unref);
|
||||||
|
|
||||||
/* try invoking a method */
|
/* try invoking a method */
|
||||||
error = NULL;
|
error = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user