gio/tests/gdbus-peer: Unref cached property GVariant value

Helps with: https://gitlab.gnome.org/GNOME/glib/-/issues/333
This commit is contained in:
Marco Trevisan (Treviño) 2022-09-02 21:10:05 +02:00
parent 1da208cddc
commit e268ff39b6

View File

@ -843,6 +843,7 @@ do_test_peer (void)
error = NULL;
value = g_dbus_proxy_get_cached_property (proxy, "PeerProperty");
g_assert_cmpstr (g_variant_get_string (value, NULL), ==, "ThePropertyValue");
g_clear_pointer (&value, g_variant_unref);
/* try invoking a method */
error = NULL;