menu_list_destroy - check if 'list' is non-NULL before calling file_list_free

This commit is contained in:
twinaphex 2014-12-31 20:07:42 +01:00
parent e0a364786c
commit 3ee3e5a1a5

View File

@ -35,7 +35,8 @@ void menu_list_destroy(file_list_t *list)
}
end:
file_list_free(list);
if (list)
file_list_free(list);
}
void menu_list_free(menu_list_t *menu_list)