diff options
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index b4a81ac..01a06cd 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -705,9 +705,9 @@ 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 | byte[] ret = SHA1.ComputeHash(src); | 709 | using(SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider()) |
710 | SHA1.Dispose(); | 710 | ret = SHA1.ComputeHash(src); |
711 | return ret; | 711 | return ret; |
712 | } | 712 | } |
713 | 713 | ||