diff options
Diffstat (limited to 'shell/e-folder-tree.c')
-rw-r--r-- | shell/e-folder-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/e-folder-tree.c b/shell/e-folder-tree.c index f6decb4fc0..c10f1aa241 100644 --- a/shell/e-folder-tree.c +++ b/shell/e-folder-tree.c @@ -262,8 +262,10 @@ e_folder_tree_add (EFolderTree *folder_tree, if (parent_folder == NULL) { g_warning ("e_folder_tree_add() -- Trying to add a subfolder to a path that does not exist yet -- %s", parent_path); + g_free (parent_path); return FALSE; } + g_free (parent_path); folder = g_hash_table_lookup (folder_tree->path_to_folder, path); if (folder != NULL) { @@ -285,8 +287,6 @@ e_folder_tree_add (EFolderTree *folder_tree, g_hash_table_insert (folder_tree->path_to_folder, folder->path, folder); g_hash_table_insert (folder_tree->data_to_path, data, folder->path); - g_free (parent_path); - return TRUE; } |