Diff between 31fa4c92d1825004e8a64fb513f5ab5e04fd2dea and ab945f5d23f3a1f43bd021f98d4de4234176d4ca
Changed Files
| File | Additions | Deletions | Status |
| android/hog.c | +2 | -1 | modified |
Full Patch
diff --git a/android/hog.c b/android/hog.c
index c094f72..4f16111 100644
--- a/android/hog.c
+++ b/android/hog.c
@@ -712,6 +712,8 @@ static void hog_free(void *data)
{
struct bt_hog *hog = data;
+ bt_hog_detach(hog);
+
g_slist_free_full(hog->instances, hog_free);
bt_scpp_unref(hog->scpp);
@@ -719,7 +721,6 @@ static void hog_free(void *data)
bt_bas_unref(hog->bas);
bt_uhid_unref(hog->uhid);
g_slist_free_full(hog->reports, report_free);
- g_attrib_unref(hog->attrib);
g_free(hog->name);
g_free(hog->primary);
g_free(hog);