Fix the remove bt device crash issue 84/28784/1
authorwu zheng <wu.zheng@intel.com>
Thu, 16 Oct 2014 06:50:27 +0000 (14:50 +0800)
committerwu zheng <wu.zheng@intel.com>
Thu, 16 Oct 2014 06:50:27 +0000 (14:50 +0800)
commit3cda87f5758d9d5f3456ece6e39ba955844cdcd3
tree21f54fd34b6f49738509a7ab1aa387dd2975f49d
parent2f5aa161a321a1874ed4eae9002bfb3d07ffef39
Fix the remove bt device crash issue

In the device removed process,
object->interfaces is in the circle.

However, the device destroy function remove the list device
in object->interfaces.

It is strength and will result in the program crash.
Therefore, fix it.

At the same time, fix the related adapter and gatt too.

And remove the unuseful source code.

Change-Id: I17e26118b1f17cc1d3e316f29e360b889978b7f0
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
lib/bluez.c