Commit d63949eb authored by Key Zhang's avatar Key Zhang

Fix crash. Initilize `List` as `nullptr`

It's now safe to `delete[] List` during deconstruction
parent a9294c14
......@@ -40,6 +40,7 @@ vtkFieldData::BasicIterator::BasicIterator(const int* list,
}
else
{
this->List = nullptr;
this->ListSize = 0;
}
this->Position = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment