mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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() {
|
||||
schemas.erase(name_);
|
||||
for (std::vector<const declaration*>::const_iterator it = declarations_.begin(); it != declarations_.end(); ++it) {
|
||||
delete *it;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user