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");