bluez5: Fix free order of adapters and devices
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 28 Nov 2014 12:43:07 +0000 (13:43 +0100)
committerDavid Henningsson <david.henningsson@canonical.com>
Wed, 3 Dec 2014 11:04:29 +0000 (12:04 +0100)
commit9793870b2372763b09e37e616c93781f3fe17865
tree8b35621f12e89c47ef4e463c185f90f5dd4d5c5b
parent580f468900830592fb247952e5325eedc2297ba4
bluez5: Fix free order of adapters and devices

Because the adapters reference the devices hashmap on free, we mush
free the adapters hashmap first and then the devices hashmap.

Reported-by: Alexander Patrakov <patrakov@gmail.com>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/modules/bluetooth/bluez5-util.c