mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Free db_state->info first in database_info_list_iterate_new
This commit is contained in:
parent
0e23908b78
commit
8bde46deb9
@ -122,6 +122,8 @@ static int database_info_list_iterate_new(database_state_handle_t *db_state)
|
||||
const char *new_database = db_state->list->elems[db_state->list_index].data;
|
||||
RARCH_LOG("Check database [%d/%d] : %s\n", (unsigned)db_state->list_index,
|
||||
(unsigned)db_state->list->size, new_database);
|
||||
if (db_state->info)
|
||||
database_info_list_free(db_state->info);
|
||||
db_state->info = database_info_list_new(new_database, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user