[evolution-data-server] cleanup, and fix for substantial GWise / soap mail leak, bgo#622366



commit cf128ee9ea434983cd744813f7a6bdaa34e13399
Author: Michael Meeks <michael meeks novell com>
Date:   Tue Aug 3 16:59:11 2010 +0100

    cleanup, and fix for substantial GWise / soap mail leak, bgo#622366

 camel/providers/groupwise/camel-groupwise-folder.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c
index c5bf64d..8a73189 100644
--- a/camel/providers/groupwise/camel-groupwise-folder.c
+++ b/camel/providers/groupwise/camel-groupwise-folder.c
@@ -1138,7 +1138,7 @@ update_update (CamelSession *session, CamelSessionThreadMsg *msg)
 			goto end1;
 		}
 
-		if (!item_list  || g_list_length (item_list) == 0)
+		if (!item_list)
 			done = TRUE;
 		else {
 
@@ -2418,6 +2418,7 @@ gw_update_all_items (CamelFolder *folder, GList *item_list, GError **error)
 			camel_folder_change_info_remove_uid (changes, uid);
 			CAMEL_GROUPWISE_FOLDER_REC_UNLOCK (folder, cache_lock);
 		} else {
+			g_free (temp->data);
 			item_list = g_list_delete_link (item_list, temp);
 		}
 		index++;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]