(CgArchive): dispose in constructor.

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

View File

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