Commit: 390c2b0885bfb3d301a50b4959e50c31de52b91c
Parent: 8486b4cd24f9aac0af9ed63acb1ca2f4d3778e26
Author: Sonny Sasaka <sonnysasaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-06-01 19:24:47
Tree: b18cc286c0a2983367fbde210a60bf7a8fc946ee

a2dp: Fix ref counting bug of setup_unref In a2dp_reconfig, setup is ref-counted by cb_data. However, in the fail label setup is unref-ed but cb_data is not cleared. This may cause double unref in the future if cb_data gets executed. Instead, we should do setup_cb_free to clear cb_data and unref setup.

Diffstat

M profiles/audio/a2dp.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

View Full Diff | Patch