aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorUbitUmarov2016-08-22 08:16:06 +0100
committerUbitUmarov2016-08-22 08:16:06 +0100
commit9953dad3a937e2186683069a9d34f6af99e38e50 (patch)
tree2065a4a973633a5fcedbaad79666d18c271c9360 /OpenSim/Framework/Util.cs
parentworkaround potencial memory leak (diff)
downloadopensim-SC_OLD-9953dad3a937e2186683069a9d34f6af99e38e50.zip
opensim-SC_OLD-9953dad3a937e2186683069a9d34f6af99e38e50.tar.gz
opensim-SC_OLD-9953dad3a937e2186683069a9d34f6af99e38e50.tar.bz2
opensim-SC_OLD-9953dad3a937e2186683069a9d34f6af99e38e50.tar.xz
workaround potencial memory leak
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs4
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)