Fix ox::Vector::~Vector to use delete[] instead of delete
This commit is contained in:
parent
1d65ca210f
commit
48de8f2561
2
deps/ox/src/ox/std/vector.hpp
vendored
2
deps/ox/src/ox/std/vector.hpp
vendored
@ -70,7 +70,7 @@ Vector<T>::Vector(Vector<T> &&other) {
|
||||
template<typename T>
|
||||
Vector<T>::~Vector() {
|
||||
if (m_items) {
|
||||
delete m_items;
|
||||
delete[] m_items;
|
||||
m_items = nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user