gatt: Fix not cleaning up device state properly
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 1 Oct 2018 11:10:08 +0000 (14:10 +0300)
committerhimanshu <h.himanshu@samsung.com>
Tue, 14 Jan 2020 08:53:35 +0000 (14:23 +0530)
commit8aa5c321cc3d301ec6ff48653ec1484b6b5d408b
tree3aaecf782750fca9df21dc134a02fdf00a9d0862
parent7347669ec46df45fb74768d06740981d0c209081
gatt: Fix not cleaning up device state properly

If the device is removed locally device_free would end up calling
bt_att_unref which won't trigger any disconnect callback necessary
to remove device states.

Change-Id: Iab0990928a64453dd5dfa8f519f8f88a1148dd59
Signed-off-by: himanshu <h.himanshu@samsung.com>
src/device.c
src/gatt-database.c
src/gatt-database.h