Mercurial > pidgin
changeset 9649:ce434e22edf2
[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()
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 02 Aug 2004 22:52:58 +0000 |
parents | 2316cb7a115f |
children | 780a8fbeb85b |
files | src/core.c |
diffstat | 1 files changed, 7 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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