changeset 30633:7a4f51a1e156

Fix crash when attempting to log into a bonjour account and init failed
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 25 Oct 2010 22:43:30 +0000
parents bebd0cf0a20f
children 3fad1d9e0bc3
files libpurple/protocols/bonjour/bonjour.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/bonjour.c	Mon Oct 25 20:01:50 2010 +0000
+++ b/libpurple/protocols/bonjour/bonjour.c	Mon Oct 25 22:43:30 2010 +0000
@@ -189,7 +189,8 @@
 		purple_xfer_cancel_local(bd->xfer_lists->data);
 	}
 
-	g_free(bd->jid);
+	if (bd != NULL)
+		g_free(bd->jid);
 	g_free(bd);
 	connection->proto_data = NULL;
 }