1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Get rid of REALLOC(), REALLOCFLAGS(), and CALLOC()

This commit is contained in:
Darryl Pogue
2011-10-23 23:10:15 -07:00
committed by Adam Johnson
parent 48b8cd8ad0
commit b3f75a5ae7
2 changed files with 1 additions and 4 deletions

View File

@ -245,7 +245,7 @@ void TBuffer<T>::Set (const T * source, unsigned count) {
template<class T>
void TBuffer<T>::SetBytes (unsigned bytes) {
if (bytes)
m_data = (T *)REALLOCFLAGS(m_data, bytes, ARR_MEMORY_FLAGS);
m_data = (T *)realloc(m_data, bytes);
else if (m_data) {
free(m_data);
m_data = nil;