[evolution-patches] [GW-Mailer] Fix for a crash on disabling an account
- From: "P Sankar" <psankar novell com>
- To: <evolution-patches gnome org>
- Subject: [evolution-patches] [GW-Mailer] Fix for a crash on disabling an account
- Date: Thu, 20 Apr 2006 01:00:12 -0600
Hi,
Attached is the patch to fix a crash on disabling a groupwise account.
Please review.
Sankar
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/ChangeLog,v
retrieving revision 1.156
diff -u -p -r1.156 ChangeLog
--- ChangeLog 18 Apr 2006 15:15:30 -0000 1.156
+++ ChangeLog 20 Apr 2006 06:57:05 -0000
@@ -1,3 +1,9 @@
+2006-04-20 Sankar P <psankar novell com>
+
+ * camel-groupwise-summary.c : (groupwise_summary_clear):
+ Removes from summary based on uid instead of info.
+ This will avoid double-free crash of info.
+
2006-04-18 Sankar P <psankar novell com>
* camel-groupwise-folder.c: (groupwise_sync):
Index: camel-groupwise-summary.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/camel-groupwise-summary.c,v
retrieving revision 1.10
diff -u -p -r1.10 camel-groupwise-summary.c
--- camel-groupwise-summary.c 9 Nov 2005 14:23:44 -0000 1.10
+++ camel-groupwise-summary.c 20 Apr 2006 06:57:06 -0000
@@ -330,15 +330,17 @@ groupwise_summary_clear (CamelFolderSumm
CamelFolderChangeInfo *changes;
CamelMessageInfo *info;
int i, count;
+ const char *uid;
changes = camel_folder_change_info_new ();
count = camel_folder_summary_count (summary);
for (i = 0; i < count; i++) {
if (!(info = camel_folder_summary_index (summary, i)))
continue;
-
- camel_folder_change_info_remove_uid (changes, camel_message_info_uid (info));
- camel_folder_summary_remove(summary, info);
+
+ uid = camel_message_info_uid (info);
+ camel_folder_change_info_remove_uid (changes, uid);
+ camel_folder_summary_remove_uid (summary, uid);
camel_message_info_free(info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]