Diff between abfbe1f4f8a92762f254b9bb94187438aec26396 and 518b658a7e6d412cffd2eda2eada64bdea384e30
Changed Files
| File | Additions | Deletions | Status |
| src/gatt-database.c | +7 | -0 | modified |
Full Patch
diff --git a/src/gatt-database.c b/src/gatt-database.c
index 153c80d..fa10ce8 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -916,6 +916,13 @@ static struct external_chrc *chrc_create(GDBusProxy *proxy)
return NULL;
}
+ chrc->pending_writes = queue_new();
+ if (!chrc->pending_writes) {
+ queue_destroy(chrc->pending_reads, NULL);
+ free(chrc);
+ return NULL;
+ }
+
chrc->proxy = g_dbus_proxy_ref(proxy);
return chrc;