[evolution-data-server] Bug 622008 - Don't trust is->select_folder in imapx_job_scan_changes_done()



commit 0062297b6bd46584ae52e4f7541637e5e01de0a5
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.

 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 7f3224b..d5f8ebf 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -3440,9 +3440,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]