# HG changeset patch # User Ethan Blanton # Date 1240965697 0 # Node ID 1bfc20b76bb22ec8df2bd29f09707e0ac610496d # Parent d5cf115b7c58922cd7affb41b308e00e48051b9f Alternate, API-safe fix for #8774 (crash on exit) diff -r d5cf115b7c58 -r 1bfc20b76bb2 libpurple/core.c --- a/libpurple/core.c Wed Apr 29 00:39:13 2009 +0000 +++ b/libpurple/core.c Wed Apr 29 00:41:37 2009 +0000 @@ -206,19 +206,6 @@ */ purple_certificate_uninit(); - /* The SSL plugins must be uninit before they're unloaded */ - purple_ssl_uninit(); - - /* Unload all plugins before the UI because UI plugins might call - * UI-specific functions */ - purple_debug_info("main", "Unloading all plugins\n"); - purple_plugins_destroy_all(); - - /* Shut down the UI before all the subsystems */ - ops = purple_core_get_ui_ops(); - if (ops != NULL && ops->quit != NULL) - ops->quit(); - /* Save .xml files, remove signals, etc. */ purple_smileys_uninit(); purple_idle_uninit(); @@ -239,6 +226,16 @@ purple_imgstore_uninit(); purple_network_uninit(); + /* The SSL plugins must be uninit before they're unloaded */ + purple_ssl_uninit(); + + purple_debug_info("main", "Unloading all plugins\n"); + purple_plugins_destroy_all(); + + ops = purple_core_get_ui_ops(); + if (ops != NULL && ops->quit != NULL) + ops->quit(); + /* Everything after this must not try to read any prefs */ purple_prefs_uninit(); purple_plugins_uninit();