Cleanup concurrently created breps and triangulations

This commit is contained in:
Thomas Krijnen
2019-07-09 16:34:35 +02:00
parent 40937b3c72
commit 1cd2287d86
@@ -961,6 +961,16 @@ namespace IfcGeom {
delete ifc_file;
}
if (settings.get(IfcGeom::IteratorSettings::DISABLE_TRIANGULATION)) {
for (auto& p : all_processed_native_elements_) {
delete p;
}
}
for (auto& p : all_processed_elements_) {
delete p;
}
free_shapes();
}
};