mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 05:00:53 +00:00
#2704 properly propagate iterator destructor
This commit is contained in:
@@ -107,6 +107,10 @@ namespace IfcGeom {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~Iterator() {
|
||||||
|
delete implementation_;
|
||||||
|
}
|
||||||
|
|
||||||
bool initialize() {
|
bool initialize() {
|
||||||
if (implementation_) {
|
if (implementation_) {
|
||||||
return implementation_->initialize();
|
return implementation_->initialize();
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ namespace IfcGeom {
|
|||||||
virtual BRepElement* get_native() = 0;
|
virtual BRepElement* get_native() = 0;
|
||||||
virtual const Element* get_object(int id) = 0;
|
virtual const Element* get_object(int id) = 0;
|
||||||
virtual IfcUtil::IfcBaseClass* create() = 0;
|
virtual IfcUtil::IfcBaseClass* create() = 0;
|
||||||
|
virtual ~IteratorImplementation() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user