#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:
Thomas Krijnen
2022-09-20 11:35:08 +02:00
committed by GitHub
parent d347a7f893
commit dd49c092c6
-1
View File
@@ -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;
}