Vector: Fix crash when trying to use vector after a call to clear()
This commit is contained in:
parent
00672c4b22
commit
767dbf521c
@ -164,6 +164,7 @@ template <typename T> class Vector
|
|||||||
{
|
{
|
||||||
m_size = m_capacity = 0;
|
m_size = m_capacity = 0;
|
||||||
free_impl(m_data);
|
free_impl(m_data);
|
||||||
|
m_data = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user