mirror of
https://github.com/holub/mame
synced 2025-04-26 02:07:14 +03:00
spu.c, discrete.c: global_free fixes (nw)
This commit is contained in:
parent
621083947c
commit
000fed0aea
@ -3803,7 +3803,7 @@ public:
|
||||
_ElementType *newarr = global_alloc_array_clear(_ElementType, m_allocated);
|
||||
for (int i=0; i < m_count; i++)
|
||||
newarr[i] = m_arr[i];
|
||||
global_free(m_arr);
|
||||
global_free_array(m_arr);
|
||||
m_arr = newarr;
|
||||
}
|
||||
m_arr[m_count] = object;
|
||||
|
@ -622,7 +622,7 @@ static inline int clamp(const int v)
|
||||
|
||||
spu_device::sample_cache::~sample_cache()
|
||||
{
|
||||
global_free(data);
|
||||
global_free_array(data);
|
||||
while (loop_cache)
|
||||
{
|
||||
sample_loop_cache *lc=loop_cache;
|
||||
|
Loading…
Reference in New Issue
Block a user