From b42a425b80cdf672c8452dd7cac439f805dd45a3 Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 17 Feb 2016 11:49:48 +0400 Subject: [PATCH] (Xp3Stream): dispose of segments enumerator. --- ArcFormats/KiriKiri/ArcXP3.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ArcFormats/KiriKiri/ArcXP3.cs b/ArcFormats/KiriKiri/ArcXP3.cs index 9bad7268..3d3eaa59 100644 --- a/ArcFormats/KiriKiri/ArcXP3.cs +++ b/ArcFormats/KiriKiri/ArcXP3.cs @@ -827,9 +827,11 @@ NextEntry: { if (!disposed) { - if (disposing && null != m_stream) + if (disposing) { - m_stream.Dispose(); + if (null != m_stream) + m_stream.Dispose(); + m_segment.Dispose(); } disposed = true; base.Dispose (disposing);