aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 8aa12b1e7d..c6fb7ec667 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -231,8 +231,6 @@ owner_set_cb (EvolutionShellComponent *shell_component,
g_free (uri);
}
- g_atexit (unref_standard_folders);
-
mail_session_enable_interaction (TRUE);
mail_autoreceive_setup ();
@@ -265,6 +263,8 @@ idle_quit (gpointer user_data)
static void
owner_unset_cb (EvolutionShellComponent *shell_component, gpointer user_data)
{
+ unref_standard_folders ();
+
g_idle_add_full (G_PRIORITY_LOW, idle_quit, NULL, NULL);
}