[evolution-data-server] Bug #628658 - imapx expunge memory leak



commit a304ada6d6b2c48328cbac6e7911c1de894df4c8
Author: Milan Crha <mcrha redhat com>
Date:   Tue Sep 7 10:14:47 2010 +0200

    Bug #628658 - imapx expunge memory leak

 camel/providers/imapx/camel-imapx-server.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 753b9f9..a25340a 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -1194,6 +1194,7 @@ imapx_expunge_uid_from_summary(CamelIMAPXServer *imap, gchar *uid, gboolean unso
 		camel_folder_changed (imap->select_folder, imap->changes);
 
 		g_slist_foreach (imap->expunged, (GFunc) g_free, NULL);
+		g_slist_free (imap->expunged);
 		imap->expunged = NULL;
 		camel_folder_change_info_clear (imap->changes);
 	}
@@ -1871,6 +1872,7 @@ imapx_completion(CamelIMAPXServer *imap, guchar *token, gint len, GError **error
 
 		if (imap->expunged) {
 			g_slist_foreach (imap->expunged, (GFunc) g_free, NULL);
+			g_slist_free (imap->expunged);
 			imap->expunged = NULL;
 		}
 



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