summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-03-20 17:56:26 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-03-20 17:56:26 +0000
commit0b4f814fa04647e72cd489b674a730fddba4ab9c (patch)
treeba98a5ae2b8ccc5de87a5ff6d1e234c749e75a7b
parent0122a7a9bea578e915f4569a26bcb3aac4765346 (diff)
Make sure to reset agent->request upon freeing the request
-rw-r--r--hcid/agent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hcid/agent.c b/hcid/agent.c
index 1e02ea7c..15343a4a 100644
--- a/hcid/agent.c
+++ b/hcid/agent.c
@@ -200,6 +200,8 @@ static void agent_request_free(struct agent_request *req)
{
if (req->call)
dbus_pending_call_unref(req->call);
+ if (req->agent && req->agent->request)
+ req->agent->request = NULL;
g_free(req);
}