comparison libpurple/protocols/bonjour/bonjour.c @ 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 9c8b28dc6656
children 7c33eaed54e5
comparison
equal deleted inserted replaced
30632:bebd0cf0a20f 30633:7a4f51a1e156
187 /* Cancel any file transfers */ 187 /* Cancel any file transfers */
188 while (bd != NULL && bd->xfer_lists) { 188 while (bd != NULL && bd->xfer_lists) {
189 purple_xfer_cancel_local(bd->xfer_lists->data); 189 purple_xfer_cancel_local(bd->xfer_lists->data);
190 } 190 }
191 191
192 g_free(bd->jid); 192 if (bd != NULL)
193 g_free(bd->jid);
193 g_free(bd); 194 g_free(bd);
194 connection->proto_data = NULL; 195 connection->proto_data = NULL;
195 } 196 }
196 197
197 static const char * 198 static const char *