summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/nova2001.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/nova2001.c')
-rw-r--r--src/mame/drivers/nova2001.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/nova2001.c b/src/mame/drivers/nova2001.c
index 2b76156a073..c753b14aaa8 100644
--- a/src/mame/drivers/nova2001.c
+++ b/src/mame/drivers/nova2001.c
@@ -989,7 +989,7 @@ static void lineswap_gfx_roms(running_machine *machine, const char *region, cons
UINT8* const src = memory_region(machine, region);
- UINT8* const temp = alloc_array_or_die(UINT8, length);
+ UINT8* const temp = auto_alloc_array(machine, UINT8, length);
const int mask = (1 << (bit + 1)) - 1;
@@ -1004,7 +1004,7 @@ static void lineswap_gfx_roms(running_machine *machine, const char *region, cons
memcpy(src, temp, length);
- free(temp);
+ auto_free(machine, temp);
}