Commit 53c1f9fb authored by Sean McBride's avatar Sean McBride
Browse files

Fix warning about use-after-free

Not sure if the analyzer is right, but setting
the ivar to null after delete is safe and simple.

Change-Id: I0ac894f12312e7722e9f5b23d6e69a86cf47894e
parent c02f83d0
......@@ -241,6 +241,7 @@ void vtkXMLUnstructuredDataWriter::AllocatePositionArrays()
void vtkXMLUnstructuredDataWriter::DeletePositionArrays()
delete [] this->NumberOfPointsPositions;
this->NumberOfPointsPositions = 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