Fix another non-array delete on an array
Arrays should generally be deleted with delete[]. Also, this operator's behaviour (as well as the normal delete's) is well defined on null pointers (it's a no-op), so the if is totally needless.master
parent
0821aa6315
commit
16a9c2885d
|
@ -89,8 +89,7 @@ class VC1Unit
|
|||
}
|
||||
inline int vc1_unescape_buffer(uint8_t* src, int size)
|
||||
{
|
||||
if (m_nalBuffer != 0)
|
||||
delete m_nalBuffer;
|
||||
delete[] m_nalBuffer;
|
||||
m_nalBuffer = new uint8_t[size];
|
||||
int dsize = 0, i;
|
||||
if (size < 4)
|
||||
|
|
Loading…
Reference in New Issue