Imported Upstream version 6.4.0.154

Former-commit-id: d9008e108e6ce36e3e1c6643eb17a9257a81f110
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-08-07 08:39:10 +00:00
parent 354a7ffa75
commit 0f5eeea818
51 changed files with 51 additions and 51 deletions

View File

@ -111,7 +111,7 @@ namespace System.IO.Compression
if (disposing)
GC.SuppressFinalize (this);
native.Dispose (disposing);
native?.Dispose (disposing);
if (disposing && !disposed) {
disposed = true;
@ -392,11 +392,11 @@ namespace System.IO.Compression
io_buffer = null;
if (z_stream != null) {
if (z_stream != null && !z_stream.IsInvalid) {
z_stream.Dispose();
}
if (data.IsAllocated) {
if (data != null && data.IsAllocated) {
data.Free ();
}
}