mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
fix gnustl vector dtor
This commit is contained in:
parent
0bdb0df702
commit
b55e6465ce
1 changed files with 6 additions and 1 deletions
|
@ -405,7 +405,12 @@ namespace gd {
|
||||||
}
|
}
|
||||||
|
|
||||||
~vector() {
|
~vector() {
|
||||||
if (m_start) delete m_start;
|
if (m_start) {
|
||||||
|
for (auto& x : *this) {
|
||||||
|
x.~T();
|
||||||
|
}
|
||||||
|
delete m_start;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t size() const {
|
size_t size() const {
|
||||||
|
|
Loading…
Reference in a new issue