diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-03-02 20:30:23 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-03-02 20:42:57 +0200 |
commit | c3b30229bf656afbc63a37bafaa01d9fa072bf3a (patch) | |
tree | c99eebd6efdc8ea395b8d6833bcc1453c4b31efb /android/main.c | |
parent | 8a50b1f2eb295844839e968822bffcedee0a7250 (diff) | |
download | bluez-c3b30229bf656afbc63a37bafaa01d9fa072bf3a.tar.gz |
android: Fix not cleaup AVRCP service
This causes the following leak:
744 (72 direct, 672 indirect) bytes in 1 blocks are definitely lost in loss record 114 of 119
at 0x4C291D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4E7FEC6: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x41C2ED: avrcp_new (avrcp-lib.c:203)
by 0x41B4F8: connect_cb (avrcp.c:708)
by 0x4212AB: connect_cb (btio.c:232)
by 0x4E7A2A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7A627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7AA39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x403A54: main (main.c:490)
Diffstat (limited to 'android/main.c')
-rw-r--r-- | android/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/main.c b/android/main.c index a6742efad..f7fe9c86e 100644 --- a/android/main.c +++ b/android/main.c @@ -365,6 +365,9 @@ static void cleanup_services(void) case HAL_SERVICE_ID_A2DP: bt_a2dp_unregister(); break; + case HAL_SERVICE_ID_AVRCP: + bt_avrcp_unregister(); + break; case HAL_SERVICE_ID_PAN: bt_pan_unregister(); break; |