diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-09 18:37:26 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-09 18:37:26 +0000 |
commit | f4b96e561324682b48ba1dd1d1c226fba97a33b8 (patch) | |
tree | 385eccdf09a052f2369e198b89f3c3d6eb90b78c /res | |
parent | b8a3a27c993306896486f1d758500f796dfb835e (diff) |
oops moved block without renaming a variable correctly.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33299 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_jabber.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c index 6fff2317c..b20899d74 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -161,14 +161,14 @@ static void aji_client_destroy(struct aji_client *obj) iks_filter_delete(obj->f); iks_parser_delete(obj->p); iks_stack_delete(obj->stack); - AST_LIST_LOCK(&client->messages); - while(tmp = AST_LIST_REMOVE_HEAD(&client->messages, list)) { + AST_LIST_LOCK(&obj->messages); + while ((tmp = AST_LIST_REMOVE_HEAD(&obj->messages, list))) { if (tmp->from) free(tmp->from); if (tmp->message) free(tmp->message); } - AST_LIST_HEAD_DESTROY(&client->messages); + AST_LIST_HEAD_DESTROY(&obj->messages); free(obj); } |