summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorMatt O'Gorman <mogorman@digium.com>2006-06-09 18:37:26 +0000
committerMatt O'Gorman <mogorman@digium.com>2006-06-09 18:37:26 +0000
commit76fae319880710a64a4dbdfec09d2d5befcd9af6 (patch)
tree385eccdf09a052f2369e198b89f3c3d6eb90b78c /res
parent6723184a626b99a959fc3ebebf3b159562e2ba35 (diff)
oops moved block without renaming a variable correctly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r--res/res_jabber.c6
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);
}