static void _shutdown(void) { if (prefs_get_boolean(PREF_TITLEBAR_SHOW)) { if (prefs_get_boolean(PREF_TITLEBAR_GOODBYE)) { ui_goodbye_title(); } else { ui_clear_win_title(); } } ui_close_all_wins(); jabber_disconnect(); jabber_shutdown(); roster_free(); muc_close(); caps_close(); ui_close(); #ifdef HAVE_LIBOTR otr_shutdown(); #endif #ifdef HAVE_LIBGPGME p_gpg_close(); #endif chat_log_close(); theme_close(); accounts_close(); tlscerts_close(); cmd_uninit(); log_stderr_close(); log_close(); prefs_close(); if (saved_status) { free(saved_status); } }
void cl_ev_disconnect(void) { const char *jid = jabber_get_fulljid(); cons_show("%s logged out successfully.", jid); ui_disconnected(); ui_close_all_wins(); jabber_disconnect(); roster_destroy(); muc_invites_clear(); chat_sessions_clear(); tlscerts_clear_current(); #ifdef HAVE_LIBGPGME p_gpg_on_disconnect(); #endif }
static void _shutdown(void) { ui_clear_win_title(); ui_close_all_wins(); jabber_disconnect(); jabber_shutdown(); roster_free(); muc_close(); caps_close(); ui_close(); chat_log_close(); prefs_close(); theme_close(); accounts_close(); cmd_uninit(); log_close(); }