From 8950df2ef6a5743a5e9701c82d9196b98d477a3b Mon Sep 17 00:00:00 2001 From: Irlan Date: Wed, 10 Apr 2019 08:03:06 -0300 Subject: [PATCH] Fix #48 --- include/bounce/common/template/object_array.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/bounce/common/template/object_array.h b/include/bounce/common/template/object_array.h index f691a6e..348f9e2 100644 --- a/include/bounce/common/template/object_array.h +++ b/include/bounce/common/template/object_array.h @@ -93,6 +93,9 @@ public: { B3_ASSERT(m_count > 0); --m_count; + + T* e = m_elements + m_count; + e->~T(); } const T& Back() const