From 15daf29220ed4d9a5fddf6fe87fc9b790f996211 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 23 May 2017 13:19:22 +0200 Subject: [PATCH] bluez5: avoid leaking the interface dictionary --- src/devices/bluetooth/nm-bluez5-manager.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/devices/bluetooth/nm-bluez5-manager.c b/src/devices/bluetooth/nm-bluez5-manager.c index 7052956090..1d3abb2905 100644 --- a/src/devices/bluetooth/nm-bluez5-manager.c +++ b/src/devices/bluetooth/nm-bluez5-manager.c @@ -230,10 +230,7 @@ get_managed_objects_cb (GDBusProxy *proxy, } g_variant_iter_init (&i, g_variant_get_child_value (variant, 0)); while ((g_variant_iter_next (&i, "{&o*}", &path, &ifaces))) { - if (g_variant_lookup_value (ifaces, NM_BLUEZ5_DEVICE_INTERFACE, - G_VARIANT_TYPE_DICTIONARY)) { - device_added (proxy, path, self); - } + object_manager_interfaces_added (proxy, path, ifaces, self); g_variant_unref (ifaces); }