fix leaking as_compound() calls

This commit is contained in:
shmoodyyy
2025-08-04 20:03:36 +02:00
committed by Thomas Krijnen
parent c9eb345491
commit 15a31074e8
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ IfcGeom::ConversionResultShape* IfcGeom::Representation::BRep::as_compound(bool
builder.Add(compound, moved_shape);
}
return new ifcopenshell::geometry::OpenCascadeShape(compound);
return new ifcopenshell::geometry::OpenCascadeShape(std::move(compound));
#else
throw std::runtime_error("Not available without Open Cascade");
#endif