From: Colin Leroy Date: Tue, 20 May 2014 13:38:05 +0000 (+0200) Subject: Fix leak X-Git-Tag: 3.10.0~24 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=ed5f07488ab4b5b8aefeb04054ce43ce3cde2d21 Fix leak --- diff --git a/src/plugins/notification/notification_core.c b/src/plugins/notification/notification_core.c index d797b8402..69bdf3182 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,