changeset 7587:1d9698ab5465

[gaim-migrate @ 8205] hrmm, I remember changing this some time ago, why didn't it get committed? committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 21 Nov 2003 09:31:16 +0000
parents c50926062b30
children 4434a1615e02
files src/protocols/jabber/jabber.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Fri Nov 21 09:01:15 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Fri Nov 21 09:31:16 2003 +0000
@@ -736,8 +736,8 @@
 		close(js->fd);
 	}
 
-	g_markup_parse_context_free(js->context);
-
+	if(js->context)
+		g_markup_parse_context_free(js->context);
 	if(js->callbacks)
 		g_hash_table_destroy(js->callbacks);
 	if(js->buddies)
@@ -746,7 +746,8 @@
 		g_hash_table_destroy(js->chats);
 	if(js->stream_id)
 		g_free(js->stream_id);
-	jabber_id_free(js->user);
+	if(js->user)
+		jabber_id_free(js->user);
 	g_free(js);
 }