diff --git a/include/blah_vector.h b/include/blah_vector.h index 986ec0d..2940b64 100644 --- a/include/blah_vector.h +++ b/include/blah_vector.h @@ -148,7 +148,7 @@ namespace Blah { clear(); - ::operator delete (m_buffer, sizeof(T) * m_capacity); + ::operator delete[] (m_buffer); m_capacity = 0; m_buffer = nullptr; @@ -196,7 +196,7 @@ namespace Blah } } - ::operator delete (m_buffer, sizeof(T) * m_capacity); + ::operator delete[] (m_buffer); m_buffer = new_buffer; m_capacity = new_capacity; @@ -358,4 +358,4 @@ namespace Blah m_count--; return value; } -} \ No newline at end of file +}