diff 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
line wrap: on
line diff
--- a/libgaim/protocols/jabber/jabber.c	Mon Jan 08 20:54:54 2007 +0000
+++ b/libgaim/protocols/jabber/jabber.c	Mon Jan 08 20:57:07 2007 +0000
@@ -965,6 +965,9 @@
 			gaim_input_remove(js->gc->inpa);
 		close(js->fd);
 	}
+
+	jabber_buddy_remove_all_pending_buddy_info_requests(js);
+
 	if(js->iq_callbacks)
 		g_hash_table_destroy(js->iq_callbacks);
 	if(js->disco_callbacks)