Commit 9af6ffc1 authored by Samuel Pitoiset's avatar Samuel Pitoiset

Src/Kernels: fix a memleak in dtor of FUnifInterpolator class

parent e75f496f
......@@ -211,10 +211,13 @@ public:
*/
~FUnifInterpolator()
{
for ( int l=0; l<TreeHeight; ++l)
for ( int l=0; l<TreeHeight; ++l) {
for (unsigned int child=0; child<8; ++child)
if(ChildParentInterpolator[l][child] != nullptr)
delete [] ChildParentInterpolator[l][child];
delete [] ChildParentInterpolator[l];
}
delete [] ChildParentInterpolator;
}
......
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