]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
oops moved block without renaming a variable correctly.
authorMatt O'Gorman <mogorman@digium.com>
Fri, 9 Jun 2006 18:37:26 +0000 (18:37 +0000)
committerMatt O'Gorman <mogorman@digium.com>
Fri, 9 Jun 2006 18:37:26 +0000 (18:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33299 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_jabber.c

index 6fff2317c81131e145cbe7266fce0f4ee956d959..b20899d74dc4ea866bc5759172525f88ecc3020b 100644 (file)
@@ -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);
 }