Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/openjdk/misc.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/openjdk/misc.cs b/runtime/openjdk/misc.cs
index dfba8338..21060f42 100644
--- a/runtime/openjdk/misc.cs
+++ b/runtime/openjdk/misc.cs
@@ -300,6 +300,9 @@ static class Java_sun_security_provider_NativeSeedGenerator
{
RNGCryptoServiceProvider csp = new RNGCryptoServiceProvider();
csp.GetBytes(result);
+#if NET_4_0
+ csp.Dispose();
+#endif
return true;
}
catch (CryptographicException)