media: Fix crash when endpoint replies with an error to SetConfiguration
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 12 Jan 2022 15:22:22 +0000 (07:22 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commiteb493d163510bfc72cc30a40217bca7edf7ca075
tree81570dc001a5a90b3e184f001dfd496d7637b83e
parentcefc0bde710e72f02b6796d2352031dd99f97007
media: Fix crash when endpoint replies with an error to SetConfiguration

If endpoint responds to SetConfiguration the transport is being
destroyed without removing it from the list leading a crash.

Fixes: https://github.com/bluez/bluez/issues/269
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/media.c