Correct clean up in Iterator

This commit is contained in:
Thomas Krijnen
2019-12-14 13:23:40 +01:00
committed by GitHub
parent c0cd0ce07e
commit 974e3fa904
+1 -1
View File
@@ -970,7 +970,7 @@ namespace IfcGeom {
delete ifc_file;
}
if (settings.get(IfcGeom::IteratorSettings::DISABLE_TRIANGULATION)) {
if (!settings.get(IfcGeom::IteratorSettings::DISABLE_TRIANGULATION)) {
for (auto& p : all_processed_native_elements_) {
delete p;
}