Commit 01e87896 authored by Ricardo Cañuelo's avatar Ricardo Cañuelo Committed by Ricardo Cañuelo Navarro
Browse files

Fix GVariant declarations in fu_bluez_device_write

References to opt_variant and val_variant are sunk in a subsequent
variant creation and consumed by g_dbus_proxy_call_sync. They don't need
to be freed in this context.
parent 7b2621c3
......@@ -381,9 +381,9 @@ fu_bluez_device_write (FuBluezDevice *self,
g_autoptr(GDBusProxy) proxy = NULL;
g_autoptr(GVariantBuilder) opt_builder = NULL;
g_autoptr(GVariantBuilder) val_builder = NULL;
g_autoptr(GVariant) opt_variant = NULL;
g_autoptr(GVariant) ret = NULL;
g_autoptr(GVariant) val_variant = NULL;
GVariant *opt_variant = NULL;
GVariant *val_variant = NULL;
path = g_hash_table_lookup (priv->uuid_paths, uuid);
if (path == NULL) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment