shared/bap: Fix not unregistering disconnect callback
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 6 Sep 2022 19:54:36 +0000 (12:54 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit7abf96736ae81e7ab90298d3dbb2ee36c8a0f275
tree205fbd56f4b0bfe615a16527c47f74f418bb44a7
parent05c94fe499eefe8fb7684a37c1e8fcf042f1646c
shared/bap: Fix not unregistering disconnect callback

bt_bap_detach shall always unregister the disconnect callback otherwise
the session pointer may still be accessible.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/bap.c