mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 11:00:09 +01:00
bluez5: avoid leaking the interface dictionary
This commit is contained in:
parent
1bb751b9d1
commit
15daf29220
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue