mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
bluez5: minor error handling etc. fixups
This commit is contained in:
parent
44f10330e8
commit
18dde01d87
3 changed files with 15 additions and 4 deletions
|
|
@ -4052,6 +4052,7 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
|
||||
this->a2dp_codecs = NULL;
|
||||
this->quirks = NULL;
|
||||
this->conn = NULL;
|
||||
this->dbus_connection = NULL;
|
||||
|
||||
this->a2dp_codecs = load_a2dp_codecs(this->plugin_loader, this->log);
|
||||
|
|
@ -4139,10 +4140,13 @@ fail:
|
|||
free_a2dp_codecs(this->a2dp_codecs);
|
||||
if (this->quirks)
|
||||
spa_bt_quirks_destroy(this->quirks);
|
||||
if (this->conn)
|
||||
dbus_connection_unref(this->conn);
|
||||
if (this->dbus_connection)
|
||||
spa_dbus_connection_destroy(this->dbus_connection);
|
||||
this->a2dp_codecs = NULL;
|
||||
this->quirks = NULL;
|
||||
this->conn = NULL;
|
||||
this->dbus_connection = NULL;
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue