mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 05:00:53 +00:00
Fix memory leakage from IfcSpfHeader
This commit is contained in:
@@ -43,7 +43,7 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~HeaderEntity() {
|
virtual ~HeaderEntity() {
|
||||||
delete _list;
|
delete _list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,6 +167,13 @@ public:
|
|||||||
_file_schema = new FileSchema();
|
_file_schema = new FileSchema();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~IfcSpfHeader()
|
||||||
|
{
|
||||||
|
delete _file_schema;
|
||||||
|
delete _file_name;
|
||||||
|
delete _file_description;
|
||||||
|
}
|
||||||
|
|
||||||
IfcSpfLexer* lexer() { return _lexer; }
|
IfcSpfLexer* lexer() { return _lexer; }
|
||||||
void lexer(IfcSpfLexer* l) { _lexer = l; }
|
void lexer(IfcSpfLexer* l) { _lexer = l; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user