Check NULL for dev->disconnect 95/101495/1
authorDeokhyun Kim <dukan.kim@samsung.com>
Wed, 30 Nov 2016 05:33:00 +0000 (14:33 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 1 Dec 2016 09:09:59 +0000 (18:09 +0900)
commit3680b892dde652d3c4f68701564af111ccaffac7
treedda10f1396ccfd16c991a55c073d36b6a911653b
parent5ef6e54fa22827156dba2f5c5b13520037f342c2
Check NULL for dev->disconnect

[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>
src/device.c