if (bufferCopy != NULL)
{
memmove(buffer, bufferCopy, size);
- delete bufferCopy;
+ delete [] bufferCopy;
}
}
uint8_t** tmp = new (nothrow) uint8_t* [new_size];
if (tmp)
{
- delete background_mark_stack_array;
+ delete [] background_mark_stack_array;
background_mark_stack_array = tmp;
background_mark_stack_array_length = new_size;
background_mark_stack_tos = background_mark_stack_array;
}
}
//if(m_fOBJ) m_pCurMethod->m_TRDList.PUSH(new TokenRelocDescr(m_CurPC,mr));
- delete pszMemberName;
+ delete [] pszMemberName;
delete sig;
}
return mr;
memcpy(pb,m_pOutputBuffer,m_CurPC);
- delete m_pOutputBuffer;
+ delete [] m_pOutputBuffer;
m_pOutputBuffer = pb;
m_pCurOutputPos = &m_pOutputBuffer[m_CurPC];
m_pEndOutputPos = &m_pOutputBuffer[newlen];
end = &start[initialAlloc];
}
- ~OutString() { delete start; }
+ ~OutString() { delete [] start; }
// shortcut for printing decimal
OutString& operator<<(int i) { return(dec(i)); }
// Delete the metadata after the event is created.
// The metadata blob will be copied into EventPipe-owned memory.
- delete(pMetadata);
+ delete [] pMetadata;
}
EventPipeEventSource::~EventPipeEventSource()