diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-03-20 17:56:26 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-03-20 17:56:26 +0000 |
commit | 0b4f814fa04647e72cd489b674a730fddba4ab9c (patch) | |
tree | ba98a5ae2b8ccc5de87a5ff6d1e234c749e75a7b /hcid/agent.c | |
parent | 0122a7a9bea578e915f4569a26bcb3aac4765346 (diff) |
Make sure to reset agent->request upon freeing the request
Diffstat (limited to 'hcid/agent.c')
-rw-r--r-- | hcid/agent.c | 2 |
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); } |