comparison src/protocols/gg/gg.c @ 13998:4fa4f2909b0d

[gaim-migrate @ 16583] Fix a crash when gadu-gadu signs off while a search is still open. It destroys its search HashTable in its close() function, and that table is accessed when gaim_notify_close_with_handle() is called. An alternative fix would be for the close_with_handle() functions to be called before prpl_info->close() in connection.c, but I'm not positive that this wouldn't cause problems with other prpls, so I went for a smaller-impact change. I'll merge this back to the 2.0.0 branch if there are no objections. committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 27 Jul 2006 17:37:42 +0000
parents d70f4e25eab5
children 44c5c6d80239
comparison
equal deleted inserted replaced
13997:1c411ca5590c 13998:4fa4f2909b0d
1734 if (info->session != NULL) { 1734 if (info->session != NULL) {
1735 ggp_set_status(account, status); 1735 ggp_set_status(account, status);
1736 gg_logoff(info->session); 1736 gg_logoff(info->session);
1737 gg_free_session(info->session); 1737 gg_free_session(info->session);
1738 } 1738 }
1739
1740 /* Immediately close any notifications on this handle since that process depends
1741 * upon the contents of info->searches, which we are about to destroy.
1742 */
1743 gaim_notify_close_with_handle(gc);
1739 1744
1740 ggp_search_destroy(info->searches); 1745 ggp_search_destroy(info->searches);
1741 g_free(info); 1746 g_free(info);
1742 gc->proto_data = NULL; 1747 gc->proto_data = NULL;
1743 } 1748 }