Commit 8e144bc0 authored by isucan's avatar isucan
Browse files

Merge pull request #11 from orthez/master

Memory leak in BVHDistance
parents 80a11c75 f3bf37da
......@@ -229,6 +229,8 @@ FCL_REAL BVHDistance(const CollisionGeometry* o1, const Transform3f& tf1, const
initialize(node, *obj1_tmp, tf1_tmp, *obj2_tmp, tf2_tmp, request, result);
distance(&node);
delete obj1_tmp;
delete obj2_tmp;
return result.min_distance;
}
......
Supports Markdown
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