mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +08:00
(Mp3Input): adjusted Dispose method.
This commit is contained in:
parent
4ef415935f
commit
74cfcfe78c
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user