diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/adapter.c | 5 |
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; } |