Fix a memory leak in folder_register_class().
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 9 Sep 2016 21:11:52 +0000 (23:11 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 9 Sep 2016 21:11:52 +0000 (23:11 +0200)
src/folder.c

index c229284..b653bac 100644 (file)
@@ -142,6 +142,7 @@ void folder_register_class(FolderClass *klass)
                                if (folder) {
                                        folder_add(folder);
                                        folder_unloaded_list = g_slist_remove(folder_unloaded_list, node);
+                                       xml_free_tree(node);
                                }
                                cur = NULL;
                                continue;