diff options
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 96b91ff..b4a81ac 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -706,7 +706,9 @@ namespace OpenSim.Framework | |||
706 | private static byte[] ComputeSHA1Hash(byte[] src) | 706 | private static byte[] ComputeSHA1Hash(byte[] src) |
707 | { | 707 | { |
708 | SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider(); | 708 | SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider(); |
709 | return SHA1.ComputeHash(src); | 709 | byte[] ret = SHA1.ComputeHash(src); |
710 | SHA1.Dispose(); | ||
711 | return ret; | ||
710 | } | 712 | } |
711 | 713 | ||
712 | public static int fast_distance2d(int x, int y) | 714 | public static int fast_distance2d(int x, int y) |