summaryrefslogtreecommitdiff
path: root/android/bluetooth.c
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2014-09-03 15:17:12 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-09-03 16:40:52 +0200
commit3729ced0f6b157e8baa7f43acb1254fb0a6e21ae (patch)
treefaf4d2ff822c66d64e7aae056c25de3ba2b812cd /android/bluetooth.c
parent90bdffaddb993a52961cb8bb3beebf97a1c87c3a (diff)
downloadbluez-3729ced0f6b157e8baa7f43acb1254fb0a6e21ae.tar.gz
android/bluetooth: Set unpaired cb list to NULL while unregistering bt
Unpaired callback list for profiles needs to be set to NULL while unregistering bluetooth. Other profiles may try to unregister and remove its unpair cb, this cause invalid read callback list.
Diffstat (limited to 'android/bluetooth.c')
-rw-r--r--android/bluetooth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/bluetooth.c b/android/bluetooth.c
index 8b4701503..d275dea66 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -5281,4 +5281,5 @@ void bt_bluetooth_unregister(void)
hal_ipc = NULL;
queue_destroy(unpaired_cb_list, NULL);
+ unpaired_cb_list = NULL;
}