Commit cc1f8355 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

BUG: Fixed memory leak.

parent c0740101
......@@ -37,7 +37,7 @@
#include "vtkstd/vector"
#include "vtkstd/algorithm"
vtkCxxRevisionMacro(vtkPlotLine, "1.23");
vtkCxxRevisionMacro(vtkPlotLine, "1.24");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkPlotLine);
......@@ -66,6 +66,11 @@ vtkPlotLine::~vtkPlotLine()
this->Sorted->Delete();
this->Sorted = NULL;
}
if (this->BadPoints)
{
this->BadPoints->Delete();
this->BadPoints = NULL;
}
}
//-----------------------------------------------------------------------------
......
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