mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-25 12:24:12 +08:00
(PkZipArchive): fixed Dispose() implementation.
This commit is contained in:
parent
834409f2a4
commit
2abe3c706a
@ -70,13 +70,14 @@ namespace GameRes.Formats.PkWare
|
|||||||
bool _zip_disposed = false;
|
bool _zip_disposed = false;
|
||||||
protected override void Dispose (bool disposing)
|
protected override void Dispose (bool disposing)
|
||||||
{
|
{
|
||||||
if (_zip_disposed)
|
if (!_zip_disposed)
|
||||||
return;
|
{
|
||||||
|
|
||||||
if (disposing)
|
if (disposing)
|
||||||
m_zip.Dispose();
|
m_zip.Dispose();
|
||||||
_zip_disposed = true;
|
_zip_disposed = true;
|
||||||
}
|
}
|
||||||
|
base.Dispose (disposing);
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user