Commit: 4262d6e10f234b030c8534860548d482c4b310cb
Parent: aee3b7128593833ec74f9dc1e22eb6e16450d4a9
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-03-03 16:11:18
Tree: cd013cb18e7ad53c7682c69845d793c72828fde4

android/avrcp-lib: Fix destroy callback handling AVRCP destroy callback was directly passed as AVCTP destroy callback resulting in struct avrcp not being freed on remote disconnect. This fix following Valgrind report: 931 (36 direct, 895 indirect) bytes in 1 blocks are definitely lost in loss record 53 of 55 at 0x4896DC8: calloc (in /system/lib/valgrind/ vgpreload_memcheck-arm-linux.so) by 0x48C5DB7: g_malloc0 (gmem.c:189) by 0x118671: avrcp_new (avrcp-lib.c:219) by 0x117D4F: connect_cb (avrcp.c:346) by 0x12068B: connect_cb (btio.c:232) by 0x48BD9C7: g_io_unix_dispatch (giounix.c:166) by 0x48C2CCB: g_main_context_dispatch (gmain.c:2539) by 0x48C2ED9: g_main_context_iterate.isra.19 (gmain.c:3146) by 0x48C3167: g_main_loop_run (gmain.c:3340) by 0x10BA03: main (main.c:490)

Diffstat

M android/avrcp-lib.c | 23 ++++++++++++++++++++++-

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

View Full Diff | Patch