Diff between dfb579e50973d6499ebdc0ecc64e347b9064fb97 and 0e260e458c155654524ec76163ece3f65a8d4f9f
Changed Files
| File | Additions | Deletions | Status |
| src/gatt-client.c | +3 | -1 | modified |
Full Patch
diff --git a/src/gatt-client.c b/src/gatt-client.c
index 2f01867..d3b699d 100644
--- a/src/gatt-client.c
+++ b/src/gatt-client.c
@@ -1492,8 +1492,10 @@ static DBusMessage *characteristic_acquire_notify(DBusConnection *conn,
register_notify_io_cb,
notify_io_cb,
client, NULL);
- if (!client->notify_id)
+ if (!client->notify_id) {
+ notify_client_unref(client);
return btd_error_failed(msg, "Failed to subscribe");
+ }
queue_push_tail(chrc->notify_clients, client);