diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-02-27 12:54:22 +0000 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-02-28 17:39:04 +0000 |
commit | 35d4c7f898af8919f6985f1098fba91b8f002d06 (patch) | |
tree | c2d16047fd2fea617f63c3100ce61e60778b35d6 /gio/gnetworkmonitornm.c | |
parent | 61a899815bae959c5e4768303c59bc5825ff9980 (diff) | |
download | glib-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.c | 2 |
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"); |