summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 22199710ae..d2a7111e5f 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1063,14 +1063,11 @@ void tree_mem_init(void)
1063 1063
1064 cache->name_buffer_size = AVERAGE_FILENAME_LENGTH * 1064 cache->name_buffer_size = AVERAGE_FILENAME_LENGTH *
1065 global_settings.max_files_in_dir; 1065 global_settings.max_files_in_dir;
1066 cache->name_buffer_handle = core_alloc_ex("tree names", 1066 cache->name_buffer_handle = core_alloc_ex(cache->name_buffer_size, &ops);
1067 cache->name_buffer_size,
1068 &ops);
1069 1067
1070 cache->max_entries = global_settings.max_files_in_dir; 1068 cache->max_entries = global_settings.max_files_in_dir;
1071 cache->entries_handle = core_alloc_ex("tree entries", 1069 cache->entries_handle =
1072 cache->max_entries*(sizeof(struct entry)), 1070 core_alloc_ex(cache->max_entries*(sizeof(struct entry)), &ops);
1073 &ops);
1074} 1071}
1075 1072
1076bool bookmark_play(char *resume_file, int index, unsigned long elapsed, 1073bool bookmark_play(char *resume_file, int index, unsigned long elapsed,