Commit: e3d377c0031923d0c72ecb883171441f8f3fd6b6
Parent: 790e32b8da57755c9e97647310a0d7db6eb0c7fd
Author: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-12-03 10:05:44
Tree: 8131a4d3833dfdfc4d2fb16ba21c03e67801e904

android/client: Fix no closing bt and audio dev on exit Audio and bt hw devices should be closed on exit. On exit we get: ==696== 80 bytes in 1 blocks are definitely lost in loss record 6 of 13 ==696== at 0x4C2745D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==696== by 0x6B3E683: open_bluetooth (hal-bluetooth.c:1079) ==696== by 0x4051C3: init_p (if-bt.c:374) ==696== by 0x4020F8: process_line (haltest.c:310) ==696== by 0x401919: main (haltest.c:423) ==696== ==696== 272 bytes in 1 blocks are possibly lost in loss record 10 of 13 ==696== at 0x4C291D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==696== by 0x4011C24: _dl_allocate_tls (in /usr/lib64/ld-2.18.so) ==696== by 0x534480A: pthread_create@@GLIBC_2.2.5 (in /usr/lib64/libpthread-2.18.so) ==696== by 0x5D192AE: audio_open (hal-audio.c:1541) ==696== by 0x411683: init_p (audio.h:655) ==696== by 0x4020F8: process_line (haltest.c:310) ==696== by 0x401907: main (haltest.c:421) ==696== ==696== LEAK SUMMARY: ==696== definitely lost: 80 bytes in 1 blocks ==696== indirectly lost: 0 bytes in 0 blocks ==696== possibly lost: 272 bytes in 1 blocks ==696== still reachable: 6,236 bytes in 18 blocks ==696== suppressed: 0 bytes in 0 blocks

Diffstat

M android/client/haltest.c | 7 +++++++
M android/client/if-bt.c | 15 ++++++++++++- - -
M android/client/if-main.h | 1 +

3 files changed, 20 insertions(+), 3 deletions(-)

View Full Diff | Patch