Diff between 14bbd6537fe563381ef1bcfab9ba9071d61c83e5 and d6cafa1f0c3ea1989f8a580e52f418b0998a3552

Changed Files

File Additions Deletions Status
profiles/input/hog.c +2 -0 modified

Full Patch

diff --git a/profiles/input/hog.c b/profiles/input/hog.c
index 23c9c15..83c017d 100644
--- a/profiles/input/hog.c
+++ b/profiles/input/hog.c
@@ -199,6 +199,8 @@ static int hog_disconnect(struct btd_service *service)
 	struct hog_device *dev = btd_service_get_user_data(service);
 
 	bt_hog_detach(dev->hog);
+	bt_hog_unref(dev->hog);
+	dev->hog = NULL;
 
 	btd_service_disconnecting_complete(service, 0);