[evolution-data-server] Bug #628426 - Fix double free crash caused by the previous patch
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #628426 - Fix double free crash caused by the previous patch
- Date: Wed, 8 Sep 2010 11:11:25 +0000 (UTC)
commit b01708589aea7ec82218d33616e1e8a56f01d0b1
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 8 13:09:58 2010 +0200
Bug #628426 - Fix double free crash caused by the previous patch
camel/providers/imapx/camel-imapx-server.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index e8758f5..58d78c6 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -3550,7 +3550,7 @@ imapx_command_step_fetch_done(CamelIMAPXServer *is, CamelIMAPXCommand *ic)
}
isum->uidnext = ifolder->uidnext_on_server;
-cleanup:
+ cleanup:
for (i=0;i<infos->len;i++) {
struct _refresh_info *r = &g_array_index(infos, struct _refresh_info, i);
@@ -3558,7 +3558,8 @@ cleanup:
g_free(r->uid);
}
g_array_free(job->u.refresh_info.infos, TRUE);
- camel_folder_change_info_free (job->u.refresh_info.changes);
+ if (job->type == IMAPX_JOB_FETCH_NEW_MESSAGES)
+ camel_folder_change_info_free (job->u.refresh_info.changes);
imapx_job_done (is, job);
camel_imapx_command_free (ic);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]