From bf03bc815d39fa158a3361638851ac60b3b5111f Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Mon, 19 Oct 2020 00:48:17 -0700 Subject: [PATCH] list missing destructor call should maybe just switch to std::vector ....... --- public/blah/containers/list.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/blah/containers/list.h b/public/blah/containers/list.h index 2d102fb..ea0c03f 100644 --- a/public/blah/containers/list.h +++ b/public/blah/containers/list.h @@ -179,7 +179,10 @@ namespace Blah else { for (int n = 0; n < m_count; n++) + { new (new_buffer + n) T(std::move(m_buffer[n])); + m_buffer[n].~T(); + } } ::operator delete (m_buffer, sizeof(T) * last_capacity);