[Problem] bluez crashes when disconnecting hid fails
[Cause & Measure] dev->disconnect is already unrefed but tries again with NULL
[Checking Method] Launch VR Controller App wihtout GearVR
Change-Id: Iee9cd0d6793fac6c2c4f7ec54040293321383e7a
Signed-off-by: Injun Yang <injun.yang@samsung.com>
if (err == 0)
return NULL;
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ if (dev->disconnect)
+#endif
dbus_message_unref(dev->disconnect);
dev->disconnect = NULL;