(Menu) Add cache for selection_buf and menu_stack

This commit is contained in:
Jean-André Santoni 2014-10-20 19:56:50 +02:00
parent 4bdc3a2818
commit 0227602ce5
2 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,8 @@ void *menu_list_new(void)
list->menu_stack = (file_list_t*)calloc(1, sizeof(file_list_t));
list->selection_buf = (file_list_t*)calloc(1, sizeof(file_list_t));
list->menu_stack_old = (file_list_t*)calloc(1, sizeof(file_list_t));
list->selection_buf_old = (file_list_t*)calloc(1, sizeof(file_list_t));
if (!list->menu_stack || !list->selection_buf)
{

View File

@ -26,7 +26,9 @@ extern "C" {
typedef struct menu_list
{
file_list_t *menu_stack;
file_list_t *menu_stack_old;
file_list_t *selection_buf;
file_list_t *selection_buf_old;
} menu_list_t;
void menu_list_free(menu_list_t *menu_list);