Commit 42d82e64 authored by Norby, Tom's avatar Norby, Tom
Browse files

Resolve memory leak.

parent 55525692
Pipeline #136297 passed with stages
in 20 minutes and 4 seconds
......@@ -26,6 +26,7 @@ Plane *GeometryFactory::createPlane(GeometryPool &pool, const Real a,
return plane;
Cuboid *GeometryFactory::createCuboid(GeometryPool &pool, const Real x0,
const Real x1, const Real y0,
const Real y1, const Real z0,
......@@ -188,8 +189,10 @@ Union *GeometryFactory::createUnion(GeometryPool &pool, GeometryObject *left,
Union *theUnion = createUnion(pool, left, allOnTheRight);
delete allOnTheRight;
return theUnion;
Instance *GeometryFactory::createInstance(GeometryPool &pool,
GeometryObject *object,
Instance *parent)
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