aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/e-convert-local-mail.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/e-convert-local-mail.c b/shell/e-convert-local-mail.c
index 16736c95c4..8a726f8a99 100644
--- a/shell/e-convert-local-mail.c
+++ b/shell/e-convert-local-mail.c
@@ -241,12 +241,15 @@ migrate_mbox_to_maildir (EShell *shell,
camel_service_set_settings (mbox_service, settings);
- settings = camel_service_get_settings (maildir_service);
+ settings = camel_service_ref_settings (maildir_service);
+
path = g_build_filename (data_dir, "local", NULL);
g_object_set (settings, "path", path, NULL);
g_mkdir (path, 0700);
g_free (path);
+ g_object_unref (settings);
+
ms.mail_store = CAMEL_STORE (mbox_service);
ms.maildir_store = CAMEL_STORE (maildir_service);
ms.session = session;