[evolution-ews] Bug 656482: Fix leak of old mi->change_key in sync_updated_items()



commit 78f5f81e7485ccd63a221d5e29ec0f2783b3ca9a
Author: David Woodhouse <David Woodhouse intel com>
Date:   Wed Aug 17 15:45:01 2011 +0100

    Bug 656482: Fix leak of old mi->change_key in sync_updated_items()

 src/camel/camel-ews-utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-ews-utils.c b/src/camel/camel-ews-utils.c
index 0efe344..0955506 100644
--- a/src/camel/camel-ews-utils.c
+++ b/src/camel/camel-ews-utils.c
@@ -919,6 +919,7 @@ camel_ews_utils_sync_updated_items (CamelEwsFolder *ews_folder, GSList *items_up
 								 server_flags, NULL))
 				camel_folder_change_info_change_uid (ci, mi->info.uid);
 
+			g_free (mi->change_key);
 			mi->change_key = g_strdup (id->change_key);
 			mi->info.dirty = TRUE;
 



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