From aac3dff2847c14159eb047d7ac4c73e818b943f4 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 6 Sep 2010 20:39:48 +0200 Subject: [PATCH] Bug #628426 - imapx refresh_info memory leak --- camel/providers/imapx/camel-imapx-server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c index a9f3c52..70beb21 100644 --- a/camel/providers/imapx/camel-imapx-server.c +++ b/camel/providers/imapx/camel-imapx-server.c @@ -3556,6 +3556,7 @@ cleanup: g_free(r->uid); } g_array_free(job->u.refresh_info.infos, TRUE); + camel_folder_change_info_free (job->u.refresh_info.changes); imapx_job_done (is, job); camel_imapx_command_free (ic); @@ -3809,8 +3810,7 @@ imapx_command_fetch_new_messages_done (CamelIMAPXServer *is, CamelIMAPXCommand * isum->uidnext = ifolder->uidnext_on_server; exception: - if (ic->job->noreply) - camel_folder_change_info_free(ic->job->u.refresh_info.changes); + camel_folder_change_info_free (ic->job->u.refresh_info.changes); if (ic->job->op) camel_operation_unref (ic->job->op); -- 2.7.4