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