Fix Vector::resize to delete old array

This commit is contained in:
Gary Talent 2017-12-23 20:35:10 -06:00
parent 48de8f2561
commit ebdd31315d

View File

@ -110,6 +110,7 @@ void Vector<T>::resize(size_t size) {
m_items[i] = oldItems[i];
}
m_size = size;
delete[] oldItems;
}
template<typename T>