mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 11:44:03 +02: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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user