Mercurial > pidgin
diff libpurple/protocols/bonjour/jabber.c @ 29931:55913ed2a229
bonjour: Fix a crash-on-disconnect I introduced. Closes #11851
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 13 May 2010 21:01:34 +0000 |
parents | 6a4aebc4b196 |
children | 815bd8b41638 |
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/jabber.c Thu May 13 13:29:24 2010 +0000 +++ b/libpurple/protocols/bonjour/jabber.c Thu May 13 21:01:34 2010 +0000 @@ -1184,7 +1184,7 @@ buddies = purple_find_buddies(jdata->account, NULL); for (l = buddies; l; l = l->next) { BonjourBuddy *bb = purple_buddy_get_protocol_data((PurpleBuddy*) l->data); - if (bb != NULL) { + if (bb && bb->conversation) { /* Any ongoing connection attempt is cancelled * by _purple_connection_destroy */ bb->conversation->connect_data = NULL;