Mercurial > pidgin
comparison src/protocols/bonjour/bonjour.c @ 11966:bf4fe41d5e94
[gaim-migrate @ 14258]
Don't crash when closing an IM window with a screen name that isn't
a real bonjour user
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 04 Nov 2005 04:57:43 +0000 |
parents | 0d9c6d2ad64b |
children | 59494e5f7fdf |
comparison
equal
deleted
inserted
replaced
11965:bcdc6eba1700 | 11966:bf4fe41d5e94 |
---|---|
251 | 251 |
252 static void | 252 static void |
253 bonjour_convo_closed(GaimConnection *connection, const char *who) | 253 bonjour_convo_closed(GaimConnection *connection, const char *who) |
254 { | 254 { |
255 GaimBuddy *buddy = gaim_find_buddy(connection->account, who); | 255 GaimBuddy *buddy = gaim_find_buddy(connection->account, who); |
256 | |
257 if (buddy == NULL) | |
258 /* | |
259 * This buddy is not in our buddy list, and therefore does not really | |
260 * exist, so we won't have any data about them. | |
261 */ | |
262 return; | |
256 | 263 |
257 bonjour_jabber_close_conversation(((BonjourData*)(connection->proto_data))->jabber_data, buddy); | 264 bonjour_jabber_close_conversation(((BonjourData*)(connection->proto_data))->jabber_data, buddy); |
258 } | 265 } |
259 | 266 |
260 static void | 267 static void |