From 0bdb0df70225a3a008bf79b98175d9202efc84ae Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Wed, 11 Oct 2023 21:03:54 +0300 Subject: [PATCH] this code is still very sad --- loader/include/Geode/c++stl/gnustl.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/loader/include/Geode/c++stl/gnustl.hpp b/loader/include/Geode/c++stl/gnustl.hpp index b47afad8..668c0333 100644 --- a/loader/include/Geode/c++stl/gnustl.hpp +++ b/loader/include/Geode/c++stl/gnustl.hpp @@ -405,9 +405,7 @@ namespace gd { } ~vector() { - for (auto i = m_start; i != m_finish; ++i) { - delete i; - } + if (m_start) delete m_start; } size_t size() const {