# HG changeset patch # User Evan Schoenberg # Date 1154021862 0 # Node ID 4fa4f2909b0d795d9ac1fb68ef38e0172aad81ee # Parent 1c411ca5590c8a4d4f47f5080659dc6ffe68d189 [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 diff -r 1c411ca5590c -r 4fa4f2909b0d src/protocols/gg/gg.c --- 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;