Diff between 6b1be64e10b54a5724ef88224d89291652ad6130 and ea0d9aef03366c343e1520a3750927a3c2061a80

Changed Files

File Additions Deletions Status
audio/transport.c +1 -0 modified

Full Patch

diff --git a/audio/transport.c b/audio/transport.c
index 2739199..7bde32d 100644
--- a/audio/transport.c
+++ b/audio/transport.c
@@ -670,6 +670,7 @@ static DBusMessage *acquire(DBusConnection *conn, DBusMessage *msg,
 	owner = media_owner_create(conn, msg, accesstype);
 	id = transport->resume(transport, owner);
 	if (id == 0) {
+		media_transport_release(transport, accesstype);
 		media_owner_free(owner);
 		return btd_error_not_authorized(msg);
 	}