summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/drcuml.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2014-02-19 17:45:48 +0000
committer Aaron Giles <aaron@aarongiles.com>2014-02-19 17:45:48 +0000
commitdf5a4f15f848cbcb971fb4f6c611d6656fea401e (patch)
tree0cbb0e29830ec41d8528ab9d329b3e3c3104b96f /src/emu/cpu/drcuml.c
parentc33da39e3d5045e978cbec906a3fd38c67de95fc (diff)
Removed some auto_mallocs in favor of dynamic_arrays.
Added option to clear dynamic_arrays; on gcc this should assert if not done on POD (which is unsafe to memset).
Diffstat (limited to 'src/emu/cpu/drcuml.c')
-rw-r--r--src/emu/cpu/drcuml.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/emu/cpu/drcuml.c b/src/emu/cpu/drcuml.c
index 55235c6ef1d..42519ccd368 100644
--- a/src/emu/cpu/drcuml.c
+++ b/src/emu/cpu/drcuml.c
@@ -294,7 +294,7 @@ drcuml_block::drcuml_block(drcuml_state &drcuml, UINT32 maxinst)
m_next(NULL),
m_nextinst(0),
m_maxinst(maxinst * 3/2),
- m_inst(auto_alloc_array(drcuml.device().machine(), instruction, m_maxinst)),
+ m_inst(m_maxinst),
m_inuse(false)
{
}
@@ -306,8 +306,6 @@ drcuml_block::drcuml_block(drcuml_state &drcuml, UINT32 maxinst)
drcuml_block::~drcuml_block()
{
- // free the instruction list
- auto_free(m_drcuml.device().machine(), m_inst);
}