Browse Source

Cleanup memory in the asset archive reader

6.0.7
Ian McInerney 5 years ago
parent
commit
7b4890e578
  1. 5
      common/asset_archive.cpp

5
common/asset_archive.cpp

@ -55,7 +55,10 @@ bool ASSET_ARCHIVE::Load()
while( ( entry = tarStream.GetNextEntry() ) )
{
if( entry->IsDir() )
{
delete entry;
continue;
}
size_t length = entry->GetSize();
@ -71,6 +74,8 @@ bool ASSET_ARCHIVE::Load()
m_fileInfoCache[entry->GetName()] = fi;
offset += length;
delete entry;
}
m_cache.resize( offset );

Loading…
Cancel
Save