From a2c80b20d7365b5c1ff16342e884cd7a60a22890 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 22 Aug 2016 08:35:39 +0100 Subject: [PATCH] try to make mono happy --- OpenSim/Framework/Util.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index b4a81ac6b0..01a06cd15c 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -705,9 +705,9 @@ namespace OpenSim.Framework private static byte[] ComputeSHA1Hash(byte[] src) { - SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider(); - byte[] ret = SHA1.ComputeHash(src); - SHA1.Dispose(); + byte[] ret; + using(SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider()) + ret = SHA1.ComputeHash(src); return ret; }