summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>2010-10-14 17:13:47 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-10-14 23:31:39 +0300
commit6fd724010b71d5bb09b1247962c3b129d3493655 (patch)
tree57031ae783f231aa404e7602a5abbd1ecc3210b0
parent2a555d5d35951c2867d8809d84f6b1fb172a7797 (diff)
downloadbluez-6fd724010b71d5bb09b1247962c3b129d3493655.tar.gz
Unref pending call in fallback scenario.
Drop the reference to pending call in fallback scenario. Otherwise, dbus will assert once timer expires.
-rw-r--r--src/agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/agent.c b/src/agent.c
index c7fdbd416..b65a5504d 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -706,6 +706,7 @@ static int request_fallback(struct agent_request *req,
return -EINVAL;
dbus_pending_call_cancel(req->call);
+ dbus_pending_call_unref(req->call);
msg = dbus_message_copy(req->msg);