diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2019-09-11 11:03:28 +0200 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2019-09-11 11:13:03 +0200 |
| commit | 60c86828b7d3858e130084a27e260eb20551a473 (patch) | |
| tree | 97d918df94a697e939150e89023ae686759e79ce /src/devices/bluetooth | |
| parent | d39df457c7618ace1e1daefb8bb41d23676e1dcd (diff) | |
| parent | 857b32ce16c33d2fb191da77e9a3f3b542714d74 (diff) | |
Merge remote-tracking branch 'salsa/master'
Diffstat (limited to 'src/devices/bluetooth')
| -rw-r--r-- | src/devices/bluetooth/nm-bluez5-manager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/bluetooth/nm-bluez5-manager.c b/src/devices/bluetooth/nm-bluez5-manager.c index 7bcd04e5..9c5e8644 100644 --- a/src/devices/bluetooth/nm-bluez5-manager.c +++ b/src/devices/bluetooth/nm-bluez5-manager.c @@ -404,6 +404,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; @@ -422,7 +423,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); |