mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +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;
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
if (_zip_disposed)
|
||||
return;
|
||||
|
||||
if (!_zip_disposed)
|
||||
{
|
||||
if (disposing)
|
||||
m_zip.Dispose();
|
||||
_zip_disposed = true;
|
||||
}
|
||||
base.Dispose (disposing);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user