[Commits] [SCM] claws branch, master, updated. 3.9.3-212-ged5f074

colin at claws-mail.org colin at claws-mail.org
Tue May 20 15:37:55 CEST 2014


The branch master of project "claws" (Claws Mail) has been updated
       via  ed5f07488ab4b5b8aefeb04054ce43ce3cde2d21 (commit)
      from  aadd04da6020494c61862cb5154c99fd4bca798f (commit)


- Log -----------------------------------------------------------------
commit ed5f07488ab4b5b8aefeb04054ce43ce3cde2d21
Author: Colin Leroy <colin at colino.net>
Date:   Tue May 20 15:38:05 2014 +0200

    Fix leak

diff --git a/src/plugins/notification/notification_core.c b/src/plugins/notification/notification_core.c
index d797b84..69bdf31 100644
--- a/src/plugins/notification/notification_core.c
+++ b/src/plugins/notification/notification_core.c
@@ -177,6 +177,8 @@ GSList* get_flat_gslist_from_nodes(GNode *node)
 void notification_core_get_msg_count_of_foldername(gchar *foldername, NotificationMsgCount *count)
 {
   GList *list;
+  GSList *f_list;
+
   Folder *walk_folder;
   Folder *folder = NULL;
 
@@ -193,7 +195,9 @@ void notification_core_get_msg_count_of_foldername(gchar *foldername, Notificati
   }
 
   msg_count_clear(count);
-  notification_core_get_msg_count(get_flat_gslist_from_nodes(folder->node), count);
+  f_list = get_flat_gslist_from_nodes(folder->node);
+  notification_core_get_msg_count(f_list, count);
+  g_slist_free(f_list);
 }
 
 void notification_core_get_msg_count(GSList *folder_list,

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

Summary of changes:
 src/plugins/notification/notification_core.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list