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);