Skip to content

Commit b63fa29

Browse files
committed
Added dispose impl to X509ChainImplUnityTls
1 parent 18d60a2 commit b63fa29

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

mcs/class/System/Mono.UnityTls/UnityTlsProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ internal override bool ValidateCertificate (
8282
targetHost = targetHost.Substring (0, pos);
8383
}
8484

85-
// convert cert to native
85+
// convert cert to native or extract from unityTlsChainImpl.
8686
var result = UnityTls.unitytls_x509verify_result.UNITYTLS_X509VERIFY_NOT_DONE;
8787
UnityTls.unitytls_x509list* certificatesNative = null;
8888
try

mcs/class/System/Mono.UnityTls/X509ChainImplUnityTls.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ public override void Reset ()
8181
elements = null;
8282
}
8383
}
84+
85+
protected override void Dispose (bool disposing)
86+
{
87+
Reset();
88+
base.Dispose (disposing);
89+
}
8490
}
8591
}
8692

0 commit comments

Comments
 (0)