comparison libgaim/protocols/jabber/jabber.c @ 15301:b6f192c01225

[gaim-migrate @ 18092] When a Jabber account disconnects, remove the timeouts associated with buddy info requests which are still pending. This fixes sf.net bug 1570738, a crash with a stack trace like: Thread 0 Crashed: 0 Libgaim 0x0651ee20 g_hash_table_remove 64 (http.c:525) 1 Libgaim 0x06437598 jabber_buddy_get_info_timeout 52 (buddy.c:1075) 2 com.adiumX.AdiumLibgaim 0x03593b0c callTimerFunc 48 (icplusplus.c:28) committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Mon, 08 Jan 2007 20:57:07 +0000
parents 8e39ca9b954a
children 682908b965cf
comparison
equal deleted inserted replaced
15300:a2a0c0a13a75 15301:b6f192c01225
963 } else if (js->fd > 0) { 963 } else if (js->fd > 0) {
964 if(js->gc->inpa) 964 if(js->gc->inpa)
965 gaim_input_remove(js->gc->inpa); 965 gaim_input_remove(js->gc->inpa);
966 close(js->fd); 966 close(js->fd);
967 } 967 }
968
969 jabber_buddy_remove_all_pending_buddy_info_requests(js);
970
968 if(js->iq_callbacks) 971 if(js->iq_callbacks)
969 g_hash_table_destroy(js->iq_callbacks); 972 g_hash_table_destroy(js->iq_callbacks);
970 if(js->disco_callbacks) 973 if(js->disco_callbacks)
971 g_hash_table_destroy(js->disco_callbacks); 974 g_hash_table_destroy(js->disco_callbacks);
972 if(js->buddies) 975 if(js->buddies)