Diff between 714434769aadc7043cd6ef4fd5707fa37cdc4371 and 31fa4c92d1825004e8a64fb513f5ab5e04fd2dea
Changed Files
| File | Additions | Deletions | Status |
| android/hog.c | +4 | -1 | modified |
Full Patch
diff --git a/android/hog.c b/android/hog.c
index abc625c..c094f72 100644
--- a/android/hog.c
+++ b/android/hog.c
@@ -1007,7 +1007,10 @@ void bt_hog_detach(struct bt_hog *hog)
for (l = hog->reports; l; l = l->next) {
struct report *r = l->data;
- g_attrib_unregister(hog->attrib, r->notifyid);
+ if (r->notifyid > 0) {
+ g_attrib_unregister(hog->attrib, r->notifyid);
+ r->notifyid = 0;
+ }
}
if (hog->scpp)