mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
bluez5: unref pending calls after cancel
Cancel doesn't decrease refcount, so needs unref too.
This commit is contained in:
parent
90c8cb42ff
commit
9c788d0c7e
1 changed files with 2 additions and 0 deletions
|
|
@ -2632,6 +2632,7 @@ void spa_bt_transport_free(struct spa_bt_transport *transport)
|
|||
|
||||
if (transport->acquire_call) {
|
||||
dbus_pending_call_cancel(transport->acquire_call);
|
||||
dbus_pending_call_unref(transport->acquire_call);
|
||||
transport->acquire_call = NULL;
|
||||
}
|
||||
|
||||
|
|
@ -3551,6 +3552,7 @@ static int do_transport_release(struct spa_bt_transport *transport)
|
|||
|
||||
if (transport->acquire_call) {
|
||||
dbus_pending_call_cancel(transport->acquire_call);
|
||||
dbus_pending_call_unref(transport->acquire_call);
|
||||
transport->acquire_call = NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue