Mercurial > pidgin
changeset 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 | 1c411ca5590c |
children | dd19c67be844 |
files | src/protocols/gg/gg.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/gg/gg.c Thu Jul 27 02:20:33 2006 +0000 +++ b/src/protocols/gg/gg.c Thu Jul 27 17:37:42 2006 +0000 @@ -1737,6 +1737,11 @@ gg_free_session(info->session); } + /* Immediately close any notifications on this handle since that process depends + * upon the contents of info->searches, which we are about to destroy. + */ + gaim_notify_close_with_handle(gc); + ggp_search_destroy(info->searches); g_free(info); gc->proto_data = NULL;