• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From e268ff39b648e7b100d2aa50f472b4ff8ff5313a Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
3Date: Fri, 2 Sep 2022 21:10:05 +0200
4Subject: [PATCH] gio/tests/gdbus-peer: Unref cached property GVariant value
5
6Helps with: https://gitlab.gnome.org/GNOME/glib/-/issues/333
7
8Conflict:NA
9Reference:https://gitlab.gnome.org/GNOME/glib/-/commit/e268ff39b648e7b100d2aa50f472b4ff8ff5313a
10
11---
12 gio/tests/gdbus-peer.c | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/gio/tests/gdbus-peer.c b/gio/tests/gdbus-peer.c
16index 7179d089df..763689a4fd 100644
17--- a/gio/tests/gdbus-peer.c
18+++ b/gio/tests/gdbus-peer.c
19@@ -843,6 +843,7 @@ do_test_peer (void)
20   error = NULL;
21   value = g_dbus_proxy_get_cached_property (proxy, "PeerProperty");
22   g_assert_cmpstr (g_variant_get_string (value, NULL), ==, "ThePropertyValue");
23+  g_clear_pointer (&value, g_variant_unref);
24
25   /* try invoking a method */
26   error = NULL;
27--
28GitLab
29
30