mirror of
https://github.com/NoelFB/blah.git
synced 2025-02-20 13:48:27 +08:00
list missing destructor call
should maybe just switch to std::vector .......
This commit is contained in:
parent
e89532e132
commit
bf03bc815d
@ -179,7 +179,10 @@ namespace Blah
|
||||
else
|
||||
{
|
||||
for (int n = 0; n < m_count; n++)
|
||||
{
|
||||
new (new_buffer + n) T(std::move(m_buffer[n]));
|
||||
m_buffer[n].~T();
|
||||
}
|
||||
}
|
||||
|
||||
::operator delete (m_buffer, sizeof(T) * last_capacity);
|
||||
|
Loading…
Reference in New Issue
Block a user