[gaim-migrate @ 10497]

Mon, 02 Aug 2004 22:52:58 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Mon, 02 Aug 2004 22:52:58 +0000
changeset 9649
c73921e0e7a0
parent 9648
34a457599c78
child 9650
2a5ff978f214

[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()

src/core.c file | annotate | diff | comparison | revisions
--- 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

mercurial