talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit ed5f07488ab4b5b8aefeb04054ce43ce3cde2d21
parent aadd04da6020494c61862cb5154c99fd4bca798f
Author: Colin Leroy <colin@colino.net>
Date:   Tue, 20 May 2014 15:38:05 +0200

Fix leak

Diffstat:
Msrc/plugins/notification/notification_core.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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,