mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Freeing of lazily loaded inst attrs
This commit is contained in:
@@ -969,10 +969,12 @@ std::string IfcEntityInstanceData::toString(bool upper) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
IfcEntityInstanceData::~IfcEntityInstanceData() {
|
IfcEntityInstanceData::~IfcEntityInstanceData() {
|
||||||
for (size_t i = 0; i < getArgumentCount(); ++i) {
|
if (attributes_ != NULL) {
|
||||||
delete attributes_[i];
|
for (size_t i = 0; i < getArgumentCount(); ++i) {
|
||||||
|
delete attributes_[i];
|
||||||
|
}
|
||||||
|
delete[] attributes_;
|
||||||
}
|
}
|
||||||
delete[] attributes_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned IfcEntityInstanceData::set_id(boost::optional<unsigned> i) {
|
unsigned IfcEntityInstanceData::set_id(boost::optional<unsigned> i) {
|
||||||
|
|||||||
Reference in New Issue
Block a user