summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/adapter.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/adapter.c b/src/adapter.c
index cfd6cbd7..2a8e7d50 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -3355,7 +3355,10 @@ int btd_cancel_authorization(guint id)
g_queue_remove(auth->adapter->auths, auth);
- service_auth_cancel(auth);
+ if (auth->agent != NULL)
+ agent_cancel(auth->agent);
+
+ g_free(auth);
return 0;
}