Commit 22c1685f authored by allens's avatar allens

remove memory leak

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@19887 18c085ea-50e0-402c-830e-de6fd14e8384
parent a000698c
......@@ -339,11 +339,10 @@ avtViewInfo::SetCameraFromView(vtkCamera *vtkcam) const
vtkTransform *trans = vtkTransform::New();
trans->SetMatrix(*matrix);
vtkcam->SetUserTransform(trans);
trans->Delete();
}
else
{
vtkcam->SetUserTransform(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