From 82010c57ec4bcd2b10346a2ced038f2e0eb38b85 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 22 Sep 2013 07:24:18 -0400 Subject: Adapt to Camel API changes. --- modules/mail/e-mail-shell-view-actions.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'modules/mail/e-mail-shell-view-actions.c') diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c index a0191effa3..ef69f05a1c 100644 --- a/modules/mail/e-mail-shell-view-actions.c +++ b/modules/mail/e-mail-shell-view-actions.c @@ -116,11 +116,9 @@ account_refresh_folder_info_received_cb (GObject *source, info = camel_store_get_folder_info_finish (store, result, &error); - if (info != NULL) { - /* Provider takes care of notifications of new/removed - * folders, thus it's enough to free the returned list. */ - camel_store_free_folder_info (store, info); - } + /* Provider takes care of notifications of new/removed + * folders, thus it's enough to free the returned list. */ + camel_folder_info_free (info); if (e_activity_handle_cancellation (activity, error)) { g_error_free (error); @@ -599,9 +597,10 @@ mark_all_read_got_folder_info (GObject *source, g_strdup (folder_info->full_name)); if (response == MARK_ALL_READ_WITH_SUBFOLDERS) - mark_all_read_collect_folder_names (&context->folder_names, folder_info); + mark_all_read_collect_folder_names ( + &context->folder_names, folder_info); - camel_store_free_folder_info (store, folder_info); + camel_folder_info_free (folder_info); if (g_queue_is_empty (&context->folder_names)) { e_activity_set_state (context->activity, E_ACTIVITY_COMPLETED); -- cgit v1.2.3