(Mp3Input): adjusted Dispose method.

This commit is contained in:
morkt 2015-12-08 22:38:59 +04:00
parent 4ef415935f
commit 74cfcfe78c

View File

@ -70,15 +70,16 @@ namespace GameRes.Formats
} }
#region IDisposable Members #region IDisposable Members
bool _mp3_disposed;
protected override void Dispose (bool disposing) protected override void Dispose (bool disposing)
{ {
if (null != m_reader) if (!_mp3_disposed)
{ {
if (disposing) if (disposing)
{ {
m_reader.Dispose(); m_reader.Dispose();
} }
m_reader = null; _mp3_disposed = true;
base.Dispose (disposing); base.Dispose (disposing);
} }
} }