mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Fix mem leak in IfcSpfStream (not closed upon destruction), make Entity's dtor virtual.
This commit is contained in:
@@ -127,6 +127,11 @@ IfcSpfStream::IfcSpfStream(void* data, int l) {
|
||||
len = l;
|
||||
}
|
||||
|
||||
IfcSpfStream::~IfcSpfStream()
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
void IfcSpfStream::Close() {
|
||||
#ifdef BUF_SIZE
|
||||
if ( paging ) fclose(stream);
|
||||
|
||||
Reference in New Issue
Block a user