summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-security.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-02-26 08:57:30 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-02-26 08:57:30 +0000
commit89bf31abc697eab5a05bd508a352193c73991476 (patch)
treedca9659361828ab2ace1e6e688b1e013eb962f06 /hcid/dbus-security.c
parente6fe40e5e92a6942869a2fc7e7cb210d18da3929 (diff)
Remove request from pending list before freeing it
Diffstat (limited to 'hcid/dbus-security.c')
-rw-r--r--hcid/dbus-security.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c
index 47429c08..f6897079 100644
--- a/hcid/dbus-security.c
+++ b/hcid/dbus-security.c
@@ -867,6 +867,7 @@ static DBusHandlerResult auth_agent_send_cancel(DBusMessage *msg,
auth_agent_call_cancel(req);
auth_agent_req_cancel(req);
+ agent->pending_requests = g_slist_remove(agent->pending_requests, req);
auth_agent_req_free(req);
return send_message_and_unref(agent->conn, message);