From 3dfb555c6fa08cfbe96f11fe5275d627a4335cc6 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 (synced from ebdd31315d44e576b301289600dd8fa818d75219) --- src/ox/std/vector.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ox/std/vector.hpp b/src/ox/std/vector.hpp index 5a6fafb11..460641992 100644 --- a/src/ox/std/vector.hpp +++ b/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