From ebdd31315d44e576b301289600dd8fa818d75219 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 23 Dec 2017 20:35:10 -0600 Subject: [PATCH] Fix Vector::resize to delete old array --- deps/ox/src/ox/std/vector.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/deps/ox/src/ox/std/vector.hpp b/deps/ox/src/ox/std/vector.hpp index 5a6fafb1..46064199 100644 --- a/deps/ox/src/ox/std/vector.hpp +++ b/deps/ox/src/ox/std/vector.hpp @@ -110,6 +110,7 @@ void Vector::resize(size_t size) { m_items[i] = oldItems[i]; } m_size = size; + delete[] oldItems; } template