[evolution-data-server] Fix another memory leak in imapx qresync



commit bc3d6310a56e1ec2d52e9f400fb726ce692bd49c
Author: David Woodhouse <David Woodhouse intel com>
Date:   Wed Aug 25 19:19:48 2010 +0100

    Fix another memory leak in imapx qresync

 camel/providers/imapx/camel-imapx-server.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 2e4ec78..29b417d 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2522,7 +2522,7 @@ imapx_select (CamelIMAPXServer *is, CamelFolder *folder, gboolean forced, GError
 				i = 3;
 				do {
 					gchar buf[10];
-
+					gchar *uid;
 					i *= 3;
 					if (i > total)
 						i = total;
@@ -2537,7 +2537,9 @@ imapx_select (CamelIMAPXServer *is, CamelFolder *folder, gboolean forced, GError
 					   the summary starts from zero. */
 					sprintf(buf, "%d", total - i + 1);
 					g_string_prepend(seqs, buf);
-					g_string_prepend(uids, camel_folder_summary_uid_from_index(folder->summary, total - i));
+					uid = camel_folder_summary_uid_from_index(folder->summary, total - i);
+					g_string_prepend(uids, uid);
+					g_free(uid);
 				} while (i < total);
 
 				g_string_prepend(seqs, " (");



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