pidgin: 82e935b3: Fix crash when attempting to log into a ...

datallah at pidgin.im datallah at pidgin.im
Mon Oct 25 18:47:23 EDT 2010


----------------------------------------------------------------------
Revision: 82e935b340047646fa99de444cd143a4523928cc
Parent:   b750e3beda24d8f5daf07bb90daf2790c6b4a6c9
Author:   datallah at pidgin.im
Date:     10/25/10 18:43:30
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/82e935b340047646fa99de444cd143a4523928cc

Changelog: 

Fix crash when attempting to log into a bonjour account and init failed

Changes against parent b750e3beda24d8f5daf07bb90daf2790c6b4a6c9

  patched  libpurple/protocols/bonjour/bonjour.c

-------------- next part --------------
============================================================
--- libpurple/protocols/bonjour/bonjour.c	9f373f1963c40837750948ec0b072e6eb1abb608
+++ libpurple/protocols/bonjour/bonjour.c	e0955c7f0b8020ffa9848c290b42f88f981a3572
@@ -189,7 +189,8 @@ bonjour_close(PurpleConnection *connecti
 		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;
 }


More information about the Commits mailing list