diff options
author | 2014-03-17 17:15:03 +0000 | |
---|---|---|
committer | 2014-03-17 17:15:03 +0000 | |
commit | 1907b4864320a54d11da90146cd2ff88c22b5c11 (patch) | |
tree | 30b073d696032eab5b3f0ff6d2e297ef2682624b /src/emu/bus | |
parent | 01271d3f4dcf0f0411706115a313589686797ce3 (diff) |
and more global_free() -> global_free_array()(nw)
Diffstat (limited to 'src/emu/bus')
-rw-r--r-- | src/emu/bus/megadrive/md_slot.c | 2 | ||||
-rw-r--r-- | src/emu/bus/snes/snes_slot.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/bus/megadrive/md_slot.c b/src/emu/bus/megadrive/md_slot.c index ffee18e714e..c2a017dd036 100644 --- a/src/emu/bus/megadrive/md_slot.c +++ b/src/emu/bus/megadrive/md_slot.c @@ -516,7 +516,7 @@ int base_md_cart_slot_device::load_nonlist() fread(ROM, len); } - global_free(tmpROM); + global_free_array(tmpROM); // if we allocated a ROM larger that the file (e.g. due to uneven cart size), set remaining space to 0xff if (len > (tmplen - offset)) diff --git a/src/emu/bus/snes/snes_slot.c b/src/emu/bus/snes/snes_slot.c index 735bfe856a0..3628d0dd4f9 100644 --- a/src/emu/bus/snes/snes_slot.c +++ b/src/emu/bus/snes/snes_slot.c @@ -634,7 +634,7 @@ bool base_sns_cart_slot_device::call_load() fread(tmpROM, tmplen); offset = snes_skip_header(tmpROM, tmplen); fseek(offset, SEEK_SET); - global_free(tmpROM); + global_free_array(tmpROM); } len = (software_entry() == NULL) ? (length() - offset) : get_software_region_length("rom"); |