diff options
Diffstat (limited to 'src/emu/audit.c')
-rw-r--r-- | src/emu/audit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/audit.c b/src/emu/audit.c index f7b70c0cc34..0a9aa420c64 100644 --- a/src/emu/audit.c +++ b/src/emu/audit.c @@ -88,7 +88,7 @@ int audit_images(core_options *options, const game_driver *gamedrv, UINT32 valid if (records > 0) { /* allocate memory for the records */ - *audit = alloc_array_clear_or_die(audit_record, records); + *audit = global_alloc_array_clear(audit_record, records); record = *audit; /* iterate over ROM sources and regions */ @@ -129,7 +129,7 @@ int audit_images(core_options *options, const game_driver *gamedrv, UINT32 valid /* if we found nothing, we don't have the set at all */ if (!anyfound && anyrequired) { - free(*audit); + global_free(*audit); *audit = NULL; records = 0; } @@ -172,7 +172,7 @@ int audit_samples(core_options *options, const game_driver *gamedrv, audit_recor goto skip; /* allocate memory for the records */ - *audit = alloc_array_clear_or_die(audit_record, records); + *audit = global_alloc_array_clear(audit_record, records); record = *audit; /* now iterate over sample entries */ |