From d0fe1660837e6fdb0ec71e1301215de7f15a9c2d Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 3 Oct 2016 23:25:30 +0400 Subject: [PATCH] (CgArchive): dispose in constructor. --- ArcFormats/Eagls/ArcEAGLS.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ArcFormats/Eagls/ArcEAGLS.cs b/ArcFormats/Eagls/ArcEAGLS.cs index 23248418..7fbcb30b 100644 --- a/ArcFormats/Eagls/ArcEAGLS.cs +++ b/ArcFormats/Eagls/ArcEAGLS.cs @@ -204,7 +204,15 @@ namespace GameRes.Formats.Eagls public CgArchive (ArcView arc, ArchiveFormat impl, ICollection dir) : base (arc, impl, dir) { - m_rng = DetectEncryptionScheme(); + try + { + m_rng = DetectEncryptionScheme(); + } + catch + { + this.Dispose(); + throw; + } } IRandomGenerator DetectEncryptionScheme ()