[asterisk-commits] trunk r33299 - /trunk/res/res_jabber.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jun 9 11:37:27 MST 2006


Author: mogorman
Date: Fri Jun  9 13:37:26 2006
New Revision: 33299

URL: http://svn.digium.com/view/asterisk?rev=33299&view=rev
Log:
oops moved block without renaming a variable correctly.

Modified:
    trunk/res/res_jabber.c

Modified: trunk/res/res_jabber.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_jabber.c?rev=33299&r1=33298&r2=33299&view=diff
==============================================================================
--- trunk/res/res_jabber.c (original)
+++ trunk/res/res_jabber.c Fri Jun  9 13:37:26 2006
@@ -161,14 +161,14 @@
 	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);
 }
 



More information about the asterisk-commits mailing list