Skip to content

Commit

Permalink
fix gnustl vector dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool authored Oct 11, 2023
1 parent 0bdb0df commit b55e646
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion loader/include/Geode/c++stl/gnustl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b55e646

Please sign in to comment.