(PkZipArchive): fixed Dispose() implementation.

This commit is contained in:
morkt 2016-03-13 22:20:08 +04:00
parent 834409f2a4
commit 2abe3c706a

View File

@ -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
} }