diff options
author | UbitUmarov | 2016-08-22 08:35:39 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-22 08:35:39 +0100 |
commit | a2c80b20d7365b5c1ff16342e884cd7a60a22890 (patch) | |
tree | f16ff487e4bc177b48ce32845ad673ed56bfbc1c | |
parent | workaround potencial memory leak (diff) | |
download | opensim-SC_OLD-a2c80b20d7365b5c1ff16342e884cd7a60a22890.zip opensim-SC_OLD-a2c80b20d7365b5c1ff16342e884cd7a60a22890.tar.gz opensim-SC_OLD-a2c80b20d7365b5c1ff16342e884cd7a60a22890.tar.bz2 opensim-SC_OLD-a2c80b20d7365b5c1ff16342e884cd7a60a22890.tar.xz |
try to make mono happy
-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 | ||