mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
#2704 properly propagate iterator destructor
This commit is contained in:
@@ -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() {}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user