diff --git a/loader/include/Geode/c++stl/gnustl.hpp b/loader/include/Geode/c++stl/gnustl.hpp index 668c0333..a7d87cb6 100644 --- a/loader/include/Geode/c++stl/gnustl.hpp +++ b/loader/include/Geode/c++stl/gnustl.hpp @@ -405,7 +405,12 @@ namespace gd { } ~vector() { - if (m_start) delete m_start; + if (m_start) { + for (auto& x : *this) { + x.~T(); + } + delete m_start; + } } size_t size() const {