From cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 12 Aug 2012 14:16:04 -0400 Subject: Adapt to CamelService API changes. camel_service_get_settings() is now camel_service_ref_settings() and it returns a new CamelSettings reference which the caller must release with g_object_unref(). --- shell/e-convert-local-mail.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shell/e-convert-local-mail.c') 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; -- cgit