Commit: 6fd7e0f2e98d12cd47bcc64d2ab2a5cd46f66692
Parent: 4e6071ffe3ed601a31527490003ca726ce03b57d
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-01-29 19:17:22
Tree: d63b959803d49f055ec8d01f2cfdcad7633e56a1

android/a2dp: Fix crash on remote disconnection Remove setups when a2dp device is removed. This fix following: Invalid read of size 4 at 0x115E32: bt_stream_close (a2dp.c:1352) by 0x111DFB: ipc_handle_msg (ipc.c:95) by 0x11234B: audio_watch_cb (audio-ipc.c:67) by 0x48BD9C7: ??? (in /system/lib/libglib.so) Address 0x4a590f4 is 12 bytes inside a block of size 20 free'd at 0x4897E6C: free (in /system/lib/valgrind/vgpreload_memcheck-arm-linux.so) by 0x48C5E2B: g_free (in /system/lib/libglib.so) Invalid read of size 4 at 0x113638: avdtp_close (avdtp.c:3201) by 0x115E39: bt_stream_close (a2dp.c:1352) by 0x111DFB: ipc_handle_msg (ipc.c:95) by 0x11234B: audio_watch_cb (audio-ipc.c:67) by 0x48BD9C7: ??? (in /system/lib/libglib.so) Address 0x4a594a4 is 28 bytes inside a block of size 1,100 free'd at 0x4897E6C: free (in /system/lib/valgrind/vgpreload_memcheck-arm-linux.so) by 0x48C5E2B: g_free (in /system/lib/libglib.so)

Diffstat

M android/a2dp.c | 49 +++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - -

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

View Full Diff | Patch