bluez5: unref pending calls after cancel

Cancel doesn't decrease refcount, so needs unref too.
This commit is contained in:
Pauli Virtanen 2023-04-30 18:38:20 +03:00
parent 90c8cb42ff
commit 9c788d0c7e

View file

@ -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;
}