media: Fix crash when transport configuration changes
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 29 Nov 2022 01:08:27 +0000 (17:08 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:11:34 +0000 (15:41 +0530)
commite3ff63eb68ac5aff616705abff40bf60c7aafcc2
tree1707d6baf5b0094c54df89d71857fe2ba749c5f8
parent0d6fb7909ee7045500491835ae35aeb40e29ba6e
media: Fix crash when transport configuration changes

In case of BAP the same transport may be reconfigured multiple times
which means it would appears multiple times on endpoint->transports
leading to a crash when disconnecting as the code would attempt to
destroy the same object multiple times.
profiles/audio/media.c