[evolution-data-server/gnome-2-30] Bug 622008 - Don't trust is->select_folder in imapx_job_scan_changes_done()
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-30] Bug 622008 - Don't trust is->select_folder in imapx_job_scan_changes_done()
- Date: Mon, 28 Jun 2010 19:36:28 +0000 (UTC)
commit 5f47ec3fae03fa0f96e14f8445870ee8f919a37a
Author: David Woodhouse <David Woodhouse intel com>
Date: Thu Jun 24 14:13:17 2010 +0100
Bug 622008 - Don't trust is->select_folder in imapx_job_scan_changes_done()
We may have already issued a new SELECT command by the time the scan_changes
completion function is called, and is->select_folder may be NULL already.
(cherry picked from commit 0062297b6bd46584ae52e4f7541637e5e01de0a5)
camel/providers/imapx/camel-imapx-server.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index a6e37e1..30a661f 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -3389,9 +3389,9 @@ imapx_job_scan_changes_done(CamelIMAPXServer *is, CamelIMAPXCommand *ic)
gchar *uid = (gchar *) l->data;
CamelMessageInfo *mi;
- mi = camel_folder_summary_uid (is->select_folder->summary, uid);
+ mi = camel_folder_summary_uid (job->folder->summary, uid);
if (mi) {
- imapx_update_summary_for_removed_message (mi, is->select_folder);
+ imapx_update_summary_for_removed_message (mi, job->folder);
camel_message_info_free (mi);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]