Commit b7bb9798 authored by camp's avatar camp

Fix memory leaks and close a file


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@13493 18c085ea-50e0-402c-830e-de6fd14e8384
parent a039d920
......@@ -1330,6 +1330,7 @@ avtMaterial::SimplifyHeavilyMixedZones(int maxMats) const
delete [] new_mix_vf;
delete [] top_mat;
delete [] top_vf;
delete [] top_orig_idx;
return rv;
}
......
......@@ -467,6 +467,7 @@ void vtkDashedXorGridMapper2D::RenderOverlay(vtkViewport* viewport, vtkActor2D*
if ( input == NULL )
{
vtkErrorMacro(<< "No input!");
CLEAN_UP();
return;
}
else
......@@ -478,6 +479,7 @@ void vtkDashedXorGridMapper2D::RenderOverlay(vtkViewport* viewport, vtkActor2D*
if (numPts == 0)
{
vtkDebugMacro(<< "No points!");
CLEAN_UP();
return;
}
......
......@@ -549,6 +549,7 @@ CGContextMoveToPoint(overlay->ctx, X,H-(Y));
if ( input == NULL )
{
vtkErrorMacro(<< "No input!");
CLEAN_UP();
return;
}
else
......@@ -560,6 +561,7 @@ CGContextMoveToPoint(overlay->ctx, X,H-(Y));
if (numPts == 0)
{
vtkDebugMacro(<< "No points!");
CLEAN_UP();
return;
}
......
......@@ -243,6 +243,7 @@ GetMemorySize(unsigned int &size, unsigned int &rss)
int count = fscanf(file, "%u%u", &size, &rss);
if (count != 2)
{
fclose(file);
return;
}
size *= getpagesize();
......
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