#2704 properly propagate iterator destructor

This commit is contained in:
Thomas Krijnen
2023-01-28 14:21:45 +01:00
parent 25edc91976
commit 7df9640807
2 changed files with 5 additions and 0 deletions
@@ -107,6 +107,10 @@ namespace IfcGeom {
}
}
~Iterator() {
delete implementation_;
}
bool initialize() {
if (implementation_) {
return implementation_->initialize();
@@ -73,6 +73,7 @@ namespace IfcGeom {
virtual BRepElement* get_native() = 0;
virtual const Element* get_object(int id) = 0;
virtual IfcUtil::IfcBaseClass* create() = 0;
virtual ~IteratorImplementation() {}
};
}