Commit d8b8c823 authored by Sean McBride's avatar Sean McBride
Browse files

Merged private function into destructor

Fixed (false) cppcheck warning about memory leak.
Nothing else was using the Cleanup() function anyway.

Change-Id: Ib0778563e4e497e8c4de906069720a271adb107d
parent 43cb0292
......@@ -185,7 +185,7 @@ public:
~vtkHAVSScalarHistogram()
{
this->Cleanup();
if (this->ScalarTable) { delete [] ScalarTable; }
}
void DefineBuckets(unsigned int nBuckets)
......@@ -227,12 +227,6 @@ public:
}
return max;
}
void Cleanup()
{
if (this->ScalarTable) { delete [] ScalarTable; }
this->ScalarTable = 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