Diff between 1eddeb66e8254e2e15f17f3071cc92bab0a9704c and b405d2da26862049c1a46436cadeb39699cc0c63
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +8 | -0 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 1f45211..571a287 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2603,10 +2603,18 @@ gboolean btd_device_remove_attio_callback(struct btd_device *device, guint id)
g_free(attio);
+ if (device->attios != NULL)
+ return TRUE;
+
if (device->attioid) {
g_source_remove(device->attioid);
device->attioid = 0;
}
+ if (device->attrib) {
+ g_attrib_unref(device->attrib);
+ device->attrib = NULL;
+ }
+
return TRUE;
}