(CgArchive): dispose in constructor.

This commit is contained in:
morkt 2016-10-03 23:25:30 +04:00
parent a4311a0f2a
commit d0fe166083

View File

@ -204,7 +204,15 @@ namespace GameRes.Formats.Eagls
public CgArchive (ArcView arc, ArchiveFormat impl, ICollection<Entry> dir)
: base (arc, impl, dir)
{
m_rng = DetectEncryptionScheme();
try
{
m_rng = DetectEncryptionScheme();
}
catch
{
this.Dispose();
throw;
}
}
IRandomGenerator DetectEncryptionScheme ()