summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/snes
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-28 17:44:24 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-28 17:44:24 +0000
commit089ba456f408321f445b5d6af8cf6acf7fdcb5d2 (patch)
tree76d90e2971bf9677059a9803ad8dce43e3f00718 /src/emu/bus/snes
parentfc38a629a83afe07c821339617923b22419f9864 (diff)
converted some global_alloc_array() usage to dynamic_array/dynamic_buffer (nw)
Diffstat (limited to 'src/emu/bus/snes')
-rw-r--r--src/emu/bus/snes/snes_slot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/bus/snes/snes_slot.c b/src/emu/bus/snes/snes_slot.c
index 61997ab448e..ee89932db7f 100644
--- a/src/emu/bus/snes/snes_slot.c
+++ b/src/emu/bus/snes/snes_slot.c
@@ -630,11 +630,10 @@ bool base_sns_cart_slot_device::call_load()
if (software_entry() == NULL)
{
UINT32 tmplen = length();
- UINT8 *tmpROM = global_alloc_array(UINT8, tmplen);
+ dynamic_buffer tmpROM(tmplen);
fread(tmpROM, tmplen);
offset = snes_skip_header(tmpROM, tmplen);
fseek(offset, SEEK_SET);
- global_free_array(tmpROM);
}
len = (software_entry() == NULL) ? (length() - offset) : get_software_region_length("rom");