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 c229284daf6474c2472fcd1d08031b94ca7eb0d7..b653bacd0601b365aed7b5fa3819f02fb1352973 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;