mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +01:00
gnetworkmonitornm: Fix some minor GVariant memory leaks
Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=793880
This commit is contained in:
parent
61a899815b
commit
35d4c7f898
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user