mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
#2419 remove map erasure from destructor
de initialization order can result in map already destroyed when unique_ptr schemas are still being deleted
This commit is contained in:
@@ -72,7 +72,6 @@ IfcParse::schema_definition::schema_definition(const std::string& name, const st
|
|||||||
}
|
}
|
||||||
|
|
||||||
IfcParse::schema_definition::~schema_definition() {
|
IfcParse::schema_definition::~schema_definition() {
|
||||||
schemas.erase(name_);
|
|
||||||
for (std::vector<const declaration*>::const_iterator it = declarations_.begin(); it != declarations_.end(); ++it) {
|
for (std::vector<const declaration*>::const_iterator it = declarations_.begin(); it != declarations_.end(); ++it) {
|
||||||
delete *it;
|
delete *it;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user