Skip to content
Snippets Groups Projects
Commit dfaa014c authored by Dave DeMarle's avatar Dave DeMarle
Browse files

Merge branch 'constrained-point-handle-rep-leaks' into release

Change-Id: Ie3387cc1728d553f85f6238ea3398627e3bc32a0
parents 7bef699e 2cbcd88a
Branches
Tags v3.22.4
No related merge requests found
......@@ -505,11 +505,11 @@ int vtkConstrainedPointHandleRepresentation::GetIntersectionPosition(double even
if(path == 0)
{
picker->Delete();
return 0;
}
double pickPos[3];
picker->GetPickPosition(pickPos);
path->Register(this);
if ( this->BoundingPlanes )
{
vtkPlane *p;
......@@ -519,6 +519,7 @@ int vtkConstrainedPointHandleRepresentation::GetIntersectionPosition(double even
double v = p->EvaluateFunction( pickPos );
if ( v < tolerance )
{
picker->Delete();
return 0;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment