diff src/protocols/jabber/jabber.c @ 2635:8c75e59e4bdf

[gaim-migrate @ 2648] no. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 29 Oct 2001 11:23:22 +0000
parents e0d4a23aac89
children 37d80035e77f
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Mon Oct 29 06:47:49 2001 +0000
+++ b/src/protocols/jabber/jabber.c	Mon Oct 29 11:23:22 2001 +0000
@@ -359,6 +359,7 @@
 			/* id attrib of stream is stored for digest auth */
 			j->sid = xmlnode_get_attrib(x, "id");
 			/* STATE_EVT(JCONN_STATE_AUTH) */
+			xmlnode_free(x);
 		} else {
 			j->current = x;
 		}
@@ -1222,6 +1223,7 @@
 		gaim_input_remove(gc->inpa);
 	close(jd->jc->fd);
 	g_timeout_add(50, jabber_free, jd->jc);
+	xmlnode_free(jd->jc->current);
 	jd->jc = NULL;
 	g_free(jd);
 	gc->proto_data = NULL;