Commit c3b6eb24 authored by George Zagaris's avatar George Zagaris
Browse files

BUGFIX: Delete AMR metadata

Fixed a memory leak caused by not de-allocating the AMR metadata.

Change-Id: Ic5bda5c9a7c06bf85d4bd51ce35e35f1e2dc39e3
parent 4a7a1b4f
......@@ -80,6 +80,12 @@ vtkAMRResampleFilter::~vtkAMRResampleFilter()
this->ROI->Delete();
}
this->ROI = NULL;
if( this->AMRMetaData != NULL )
{
this->AMRMetaData->Delete();
}
this->AMRMetaData = 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