changeset 15639:37d9f44c7de1

merge of '0118224968af798e258158653762d557de01c916' and '11536c727e00c07df8769130ad28e04ac5d60462'
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 15 Feb 2007 18:59:16 +0000
parents 026f9c6cc942 (current diff) baec42670246 (diff)
children 233c4a2f7b77
files
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/parser.c	Thu Feb 15 18:19:51 2007 +0000
+++ b/libpurple/protocols/jabber/parser.c	Thu Feb 15 18:59:16 2007 +0000
@@ -54,9 +54,10 @@
 				js->protocol_version = JABBER_PROTO_1_0;
 				g_free(attrib);
 			} else if(!xmlStrcmp(attributes[i], (xmlChar*) "id")) {
-				if(js->stream_id)
-					g_free(js->stream_id);
+				g_free(js->stream_id);
 				js->stream_id = attrib;
+			} else {
+				g_free(attrib);	
 			}
 		}
 		if(js->protocol_version == JABBER_PROTO_0_9)