# HG changeset patch # User Mark Doliner # Date 1091487178 0 # Node ID c73921e0e7a09cbcbd057d76a44159acd9b296d4 # Parent 34a457599c788f5be78f27bfc69e3cb58bdaee2e [gaim-migrate @ 10497] gaim_signals_uninit() needsta be called after the plugins are destroyed. ops->quit() also gave me a little warning when I called it after gaim_signals_uninit() diff -r 34a457599c78 -r c73921e0e7a0 src/core.c --- a/src/core.c Mon Aug 02 22:21:36 2004 +0000 +++ b/src/core.c Mon Aug 02 22:52:58 2004 +0000 @@ -109,16 +109,12 @@ g_return_if_fail(core != NULL); - ops = gaim_core_get_ui_ops(); - /* The self destruct sequence has been initiated */ gaim_signal_emit(gaim_get_core(), "quitting"); /* Transmission ends */ gaim_connections_disconnect_all(); - gaim_debug(GAIM_DEBUG_INFO, "main", "Unloading all plugins\n"); - /* Save .xml files, remove signals, etc. */ gaim_ssl_uninit(); gaim_pounces_uninit(); @@ -129,9 +125,14 @@ gaim_accounts_uninit(); gaim_prefs_uninit(); - gaim_signals_uninit(); + gaim_debug(GAIM_DEBUG_INFO, "main", "Unloading all plugins\n"); + gaim_plugins_destroy_all(); - gaim_plugins_destroy_all(); + ops = gaim_core_get_ui_ops(); + if (ops != NULL && ops->quit != NULL) + ops->quit(); + + gaim_signals_uninit(); if (core->ui != NULL) { g_free(core->ui); @@ -141,10 +142,6 @@ g_free(core); _core = NULL; - - if (ops != NULL && ops->quit != NULL) - ops->quit(); - } gboolean