mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 21:30:10 +01:00
bluetooth: fix leak in get_managed_objects_cb()
Fixes:1ae5d53354('bluez: add support for BlueZ 5') (cherry picked from commit25571bb639) (cherry picked from commit6118f808d9) (cherry picked from commitb629570a75)
This commit is contained in:
parent
6c7bd42ddd
commit
ff890a5473
1 changed files with 3 additions and 1 deletions
|
|
@ -405,6 +405,7 @@ get_managed_objects_cb (GDBusProxy *proxy,
|
|||
GAsyncResult *res,
|
||||
NMBluez5Manager *self)
|
||||
{
|
||||
gs_unref_variant GVariant *variant0 = NULL;
|
||||
GVariant *variant, *ifaces;
|
||||
GVariantIter i;
|
||||
GError *error = NULL;
|
||||
|
|
@ -423,7 +424,8 @@ get_managed_objects_cb (GDBusProxy *proxy,
|
|||
g_clear_error (&error);
|
||||
return;
|
||||
}
|
||||
g_variant_iter_init (&i, g_variant_get_child_value (variant, 0));
|
||||
variant0 = g_variant_get_child_value (variant, 0);
|
||||
g_variant_iter_init (&i, variant0);
|
||||
while ((g_variant_iter_next (&i, "{&o*}", &path, &ifaces))) {
|
||||
object_manager_interfaces_added (proxy, path, ifaces, self);
|
||||
g_variant_unref (ifaces);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue