diff options
| -rw-r--r-- | audio/unix.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/audio/unix.c b/audio/unix.c index 5d5ab206..141a2b10 100644 --- a/audio/unix.c +++ b/audio/unix.c @@ -515,6 +515,12 @@ failed:  	}  	unix_ipc_error(client, BT_STREAMSTART_RSP, EIO); +	if (client->cb_id > 0) { +		avdtp_stream_remove_cb(a2dp->session, a2dp->stream, +					client->cb_id); +		client->cb_id = 0; +	} +  	avdtp_unref(a2dp->session);  	a2dp->session = NULL; | 
