comparison src/core.c @ 11464:610a243b4504

[gaim-migrate @ 13704] Fix Gaim's crash-on-exit bug in CVS HEAD committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 07 Sep 2005 04:37:02 +0000
parents e1ab173ef3b5
children bf6ba37db13b
comparison
equal deleted inserted replaced
11463:448ebda0f7ec 11464:610a243b4504
155 gaim_buddy_icons_uninit(); 155 gaim_buddy_icons_uninit();
156 gaim_accounts_uninit(); 156 gaim_accounts_uninit();
157 gaim_savedstatuses_uninit(); 157 gaim_savedstatuses_uninit();
158 gaim_status_uninit(); 158 gaim_status_uninit();
159 gaim_prefs_uninit(); 159 gaim_prefs_uninit();
160 gaim_sound_uninit();
161 gaim_xfers_uninit(); 160 gaim_xfers_uninit();
162 161
163 gaim_debug_info("main", "Unloading all plugins\n"); 162 gaim_debug_info("main", "Unloading all plugins\n");
164 gaim_plugins_destroy_all(); 163 gaim_plugins_destroy_all();
165 164
166 ops = gaim_core_get_ui_ops(); 165 ops = gaim_core_get_ui_ops();
167 if (ops != NULL && ops->quit != NULL) 166 if (ops != NULL && ops->quit != NULL)
168 ops->quit(); 167 ops->quit();
168
169 /*
170 * gaim_sound_uninit() should be called as close to
171 * shutdown as possible. This is because the call
172 * to ao_shutdown() can sometimes leave our
173 * environment variables in an unusable state, which
174 * can cause a crash when getenv is called (by gettext
175 * for example). See the complete bug report at
176 * http://trac.xiph.org/cgi-bin/trac.cgi/ticket/701
177 *
178 * TODO: Eventually move this call higher up with the others.
179 */
180 gaim_sound_uninit();
169 181
170 gaim_plugins_uninit(); 182 gaim_plugins_uninit();
171 gaim_signals_uninit(); 183 gaim_signals_uninit();
172 184
173 if (core->ui != NULL) { 185 if (core->ui != NULL) {