~collection()

This commit is contained in:
Thomas Krijnen
2020-10-29 16:06:26 +01:00
parent 7bc411ac9b
commit fb59cd4004
+6
View File
@@ -375,6 +375,12 @@ struct collection : public geom_item {
c->print(o, indent + 4); c->print(o, indent + 4);
} }
} }
virtual ~collection() {
for (auto& c : children) {
delete c;
}
}
}; };
struct shell : public collection { struct shell : public collection {