diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Util.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 96b91ff..01a06cd 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -705,8 +705,10 @@ namespace OpenSim.Framework | |||
705 | 705 | ||
706 | private static byte[] ComputeSHA1Hash(byte[] src) | 706 | private static byte[] ComputeSHA1Hash(byte[] src) |
707 | { | 707 | { |
708 | SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider(); | 708 | byte[] ret; |
709 | return SHA1.ComputeHash(src); | 709 | using(SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider()) |
710 | ret = SHA1.ComputeHash(src); | ||
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) |