summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2022-09-02 21:10:05 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2022-09-02 21:21:34 +0200
commite268ff39b648e7b100d2aa50f472b4ff8ff5313a (patch)
treee5d6084476bbe244755e6328092d4132ba80f2c1
parent1da208cddc19cad05ccf4b798a99f7045e41ffc4 (diff)
downloadglib-e268ff39b648e7b100d2aa50f472b4ff8ff5313a.tar.gz
gio/tests/gdbus-peer: Unref cached property GVariant value
Helps with: https://gitlab.gnome.org/GNOME/glib/-/issues/333
-rw-r--r--gio/tests/gdbus-peer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/tests/gdbus-peer.c b/gio/tests/gdbus-peer.c
index 7179d089d..763689a4f 100644
--- a/gio/tests/gdbus-peer.c
+++ b/gio/tests/gdbus-peer.c
@@ -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;