summaryrefslogtreecommitdiff
path: root/gio/gnetworkmonitornm.c
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2018-02-27 12:54:22 +0000
committerPhilip Withnall <withnall@endlessm.com>2018-02-28 17:39:04 +0000
commit35d4c7f898af8919f6985f1098fba91b8f002d06 (patch)
treec2d16047fd2fea617f63c3100ce61e60778b35d6 /gio/gnetworkmonitornm.c
parent61a899815bae959c5e4768303c59bc5825ff9980 (diff)
downloadglib-35d4c7f898af8919f6985f1098fba91b8f002d06.tar.gz
gnetworkmonitornm: Fix some minor GVariant memory leaks
Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=793880
Diffstat (limited to 'gio/gnetworkmonitornm.c')
-rw-r--r--gio/gnetworkmonitornm.c2
1 files changed, 2 insertions, 0 deletions
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");