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