diff --git a/ArcFormats/AudioOGG.cs b/ArcFormats/AudioOGG.cs index fec595d2..f28e5dbc 100644 --- a/ArcFormats/AudioOGG.cs +++ b/ArcFormats/AudioOGG.cs @@ -104,6 +104,22 @@ namespace GameRes.Formats // done! return cnt; } + + #region IDisposable Members + bool _ogg_disposed = false; + protected override void Dispose (bool disposing) + { + if (!_ogg_disposed) + { + if (disposing) + { + m_reader.Dispose(); + } + _ogg_disposed = true; + base.Dispose (disposing); + } + } + #endregion } [Export(typeof(AudioFormat))]