spu.c, discrete.c: global_free fixes (nw)

This commit is contained in:
Alex W. Jackson 2014-03-11 20:52:03 +00:00
parent 621083947c
commit 000fed0aea
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;