diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-26 08:57:30 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-26 08:57:30 +0000 |
commit | 89bf31abc697eab5a05bd508a352193c73991476 (patch) | |
tree | dca9659361828ab2ace1e6e688b1e013eb962f06 | |
parent | e6fe40e5e92a6942869a2fc7e7cb210d18da3929 (diff) |
Remove request from pending list before freeing it
-rw-r--r-- | hcid/dbus-security.c | 1 |
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); |