Commit e6b772d6 authored by kbensema's avatar kbensema

Fix memory leak in avtPICFilter

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@21498 18c085ea-50e0-402c-830e-de6fd14e8384
parent e64b26b2
......@@ -2217,6 +2217,8 @@ avtPICSFilter::ICInRectilinearBlock(const avtIntegralCurve *ic,
// Creation: June 5, 2013
//
// Modifications:
// Kevin Bensema Thu Aug 1 20:51 PDT
// freed avtIVPField* field pointer to fix memory leak.
//
//****************************************************************************
......@@ -2241,7 +2243,9 @@ avtPICSFilter::OnFaceAndPushedOut(const avtIntegralCurve *ic,
//vec = v;
if (ic->direction == avtIntegralCurve::DIRECTION_BACKWARD)
vec = -vec;
delete field;
if (t[0] < 0.01 && vec[0] < 0.0)
return true;
if (t[0] > 0.99 && vec[0] > 0.0)
......@@ -2275,6 +2279,9 @@ avtPICSFilter::OnFaceAndPushedOut(const avtIntegralCurve *ic,
// Creation: June 5, 2013
//
// Modifications:
// Kevin Bensema Thu Aug 1 20:51 PDT
// freed avtIVPField* field pointer to fix memory leak.
//
//
//****************************************************************************
......@@ -2300,6 +2307,8 @@ avtPICSFilter::OnFaceAndPushedIn(const avtIntegralCurve *ic,
if (ic->direction == avtIntegralCurve::DIRECTION_BACKWARD)
vec = -vec;
delete field;
if (t[0] < 0.01 && vec[0] > 0.0)
return true;
if (t[0] > 0.99 && vec[0] < 0.0)
......
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