diff --git a/src/util/vector.h b/src/util/vector.h index a925792eb..27de49c44 100644 --- a/src/util/vector.h +++ b/src/util/vector.h @@ -91,6 +91,7 @@ class vector { int i = 0; for (auto I = old_data; I != old_data + old_size; ++I) { new (&m_data[i++]) T(std::move(*I)); + I->~T(); } memory::deallocate(old_mem); }