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