summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/at29040a.c
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-28 15:02:02 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-28 15:02:02 +0000
commit513738066d94b89185222f997fd0c715acc72d5f (patch)
treefea96b2fe92502c83d8810f8b4d40f8d275b110b /src/emu/machine/at29040a.c
parent826c2fea22a9b64406397e8fbfd39c45fe63cf23 (diff)
replaced some malloc/free usage with global_alloc_array/global_free_array (nw)
Diffstat (limited to 'src/emu/machine/at29040a.c')
-rw-r--r--src/emu/machine/at29040a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/machine/at29040a.c b/src/emu/machine/at29040a.c
index 824d138c515..d426d4ea86c 100644
--- a/src/emu/machine/at29040a.c
+++ b/src/emu/machine/at29040a.c
@@ -403,16 +403,16 @@ WRITE8_MEMBER( at29040a_device::write )
void at29040a_device::device_start(void)
{
- m_programming_buffer = (UINT8*)malloc(SECTOR_SIZE);
+ m_programming_buffer = global_alloc_array(UINT8, SECTOR_SIZE);
m_programming_timer = timer_alloc(PRG_TIMER);
- m_eememory = (UINT8*)malloc(FEEPROM_SIZE+2);
+ m_eememory = global_alloc_array(UINT8, FEEPROM_SIZE+2);
}
void at29040a_device::device_stop(void)
{
- free(m_programming_buffer);
- free(m_eememory);
+ global_free_array(m_programming_buffer);
+ global_free_array(m_eememory);
}
void at29040a_device::device_reset(void)