[Commits] [SCM] claws branch, master, updated. 3.9.3-14-g5f7b75c

mones at claws-mail.org mones at claws-mail.org
Thu Jan 30 10:35:21 CET 2014


The branch master of project "claws" (Claws Mail) has been updated
       via  5f7b75cf29bd6ab29e943ab1e4ca22e595549893 (commit)
      from  a97efc7c19118ddf351ef06b4a26af817ea54cb5 (commit)


- Log -----------------------------------------------------------------
commit 5f7b75cf29bd6ab29e943ab1e4ca22e595549893
Author: Ricardo Mones <ricardo at mones.org>
Date:   Thu Jan 30 10:34:19 2014 +0100

    Fix memory leak

diff --git a/src/common/utils.c b/src/common/utils.c
index fb4ba75..ff476f1 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -260,10 +260,7 @@ void slist_free_strings_full(GSList *list)
 #if GLIB_CHECK_VERSION(2,28,0)
 	g_slist_free_full(list, (GDestroyNotify)g_free);
 #else
-	while (list != NULL) {
- 		g_free(list->data);
- 		list = list->next;
- 	}
+	g_slist_foreach(list, (GFunc)g_free, NULL);
 	g_slist_free(list);
 #endif
 }

-----------------------------------------------------------------------

Summary of changes:
 src/common/utils.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list