mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +00:00
database_info.c - use malloc
This commit is contained in:
parent
6dcbf0eab8
commit
3564562563
@ -507,11 +507,14 @@ database_info_list_t *database_info_list_new(
|
||||
goto end;
|
||||
|
||||
database_info_list = (database_info_list_t*)
|
||||
calloc(1, sizeof(*database_info_list));
|
||||
malloc(sizeof(*database_info_list));
|
||||
|
||||
if (!database_info_list)
|
||||
goto end;
|
||||
|
||||
database_info_list->count = 0;
|
||||
database_info_list->list = NULL;
|
||||
|
||||
while (ret != -1)
|
||||
{
|
||||
database_info_t db_info = {0};
|
||||
|
@ -60,13 +60,13 @@ typedef struct file_archive_file_data file_archive_file_data_t;
|
||||
|
||||
typedef struct file_archive_transfer
|
||||
{
|
||||
enum file_archive_transfer_type type;
|
||||
int32_t archive_size;
|
||||
file_archive_file_data_t *handle;
|
||||
void *stream;
|
||||
const uint8_t *footer;
|
||||
const uint8_t *directory;
|
||||
const uint8_t *data;
|
||||
int32_t archive_size;
|
||||
enum file_archive_transfer_type type;
|
||||
const struct file_archive_file_backend *backend;
|
||||
} file_archive_transfer_t;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user