From 35d4c7f898af8919f6985f1098fba91b8f002d06 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 27 Feb 2018 12:54:22 +0000 Subject: [PATCH] gnetworkmonitornm: Fix some minor GVariant memory leaks Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=793880 --- gio/gnetworkmonitornm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/gnetworkmonitornm.c b/gio/gnetworkmonitornm.c index 6f3f6ce6d..b5f7ca2d0 100644 --- a/gio/gnetworkmonitornm.c +++ b/gio/gnetworkmonitornm.c @@ -228,6 +228,7 @@ update_cached_property (GDBusProxy *proxy, if (!v) return; g_dbus_proxy_set_cached_property (proxy, property_name, v); + g_variant_unref (v); } static void @@ -248,6 +249,7 @@ proxy_signal_cb (GDBusProxy *proxy, return; dict = g_variant_dict_new (asv); + g_variant_unref (asv); if (!dict) { g_warning ("Failed to handle PropertiesChanged signal from NetworkManager");