diff --git a/src/ifcgeom/taxonomy.h b/src/ifcgeom/taxonomy.h index 2eeac65736..c22965865d 100644 --- a/src/ifcgeom/taxonomy.h +++ b/src/ifcgeom/taxonomy.h @@ -375,6 +375,12 @@ struct collection : public geom_item { c->print(o, indent + 4); } } + + virtual ~collection() { + for (auto& c : children) { + delete c; + } + } }; struct shell : public collection {