Silence some Clang static analysis warnings
This commit is contained in:
parent
88e7c03e1b
commit
e82882a1ab
|
@ -62,29 +62,40 @@ static void menu_list_free_list(file_list_t *list)
|
||||||
|
|
||||||
static void menu_list_free(menu_list_t *menu_list)
|
static void menu_list_free(menu_list_t *menu_list)
|
||||||
{
|
{
|
||||||
unsigned i;
|
|
||||||
if (!menu_list)
|
if (!menu_list)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0; i < menu_list->menu_stack_size; i++)
|
if (menu_list->menu_stack)
|
||||||
{
|
{
|
||||||
if (!menu_list->menu_stack[i])
|
unsigned i;
|
||||||
continue;
|
|
||||||
|
|
||||||
menu_list_free_list(menu_list->menu_stack[i]);
|
for (i = 0; i < menu_list->menu_stack_size; i++)
|
||||||
menu_list->menu_stack[i] = NULL;
|
{
|
||||||
}
|
if (!menu_list->menu_stack[i])
|
||||||
for (i = 0; i < menu_list->selection_buf_size; i++)
|
continue;
|
||||||
{
|
|
||||||
if (!menu_list->selection_buf[i])
|
|
||||||
continue;
|
|
||||||
|
|
||||||
menu_list_free_list(menu_list->selection_buf[i]);
|
menu_list_free_list(menu_list->menu_stack[i]);
|
||||||
menu_list->selection_buf[i] = NULL;
|
menu_list->menu_stack[i] = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
free(menu_list->menu_stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(menu_list->menu_stack);
|
if (menu_list->selection_buf)
|
||||||
free(menu_list->selection_buf);
|
{
|
||||||
|
unsigned i;
|
||||||
|
|
||||||
|
for (i = 0; i < menu_list->selection_buf_size; i++)
|
||||||
|
{
|
||||||
|
if (!menu_list->selection_buf[i])
|
||||||
|
continue;
|
||||||
|
|
||||||
|
menu_list_free_list(menu_list->selection_buf[i]);
|
||||||
|
menu_list->selection_buf[i] = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
free(menu_list->selection_buf);
|
||||||
|
}
|
||||||
|
|
||||||
free(menu_list);
|
free(menu_list);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue