mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 20:50:02 +00:00
Fix double free
This commit is contained in:
@@ -622,7 +622,7 @@ namespace ifcopenshell { namespace geometry {
|
|||||||
delete ifc_file;
|
delete ifc_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings_.get(settings::DISABLE_TRIANGULATION)) {
|
if (!settings_.get(settings::DISABLE_TRIANGULATION)) {
|
||||||
for (auto& p : all_processed_native_elements_) {
|
for (auto& p : all_processed_native_elements_) {
|
||||||
delete p;
|
delete p;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user