summaryrefslogtreecommitdiff
path: root/src/gatt-database.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gatt-database.c')
-rw-r--r--[-rwxr-xr-x]src/gatt-database.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gatt-database.c b/src/gatt-database.c
index 7dd22300..c198d176 100755..100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -1104,11 +1104,12 @@ static void conf_cb(void *user_data)
if (confirm) {
/* Send confirmation to application */
- if (g_dbus_proxy_method_call(confirm->proxy, "IndicateConfirm",
+ g_dbus_proxy_method_call(confirm->proxy, "IndicateConfirm",
indicate_confirm_setup_cb,
indicate_confirm_reply_cb, confirm->device,
- NULL) == TRUE)
- return;
+ NULL);
+ g_dbus_proxy_unref(confirm->proxy);
+ confirm->proxy = NULL;
}
#endif
}
@@ -1136,7 +1137,7 @@ static void send_notification_indication_to_device(void *data, void *user_data)
return;
confirm = new0(struct notify_indicate_cb, 1);
- confirm->proxy = notify_indicate->proxy;
+ confirm->proxy = g_dbus_proxy_ref(notify_indicate->proxy);
confirm->device = device;
/*
* TODO: If the device is not connected but bonded, send the