workaround potencial memory leak

LSLKeyTest
UbitUmarov 2016-08-22 08:16:06 +01:00
parent 39e92adaf2
commit 9953dad3a9
1 changed files with 3 additions and 1 deletions

View File

@ -706,7 +706,9 @@ namespace OpenSim.Framework
private static byte[] ComputeSHA1Hash(byte[] src)
{
SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider();
return SHA1.ComputeHash(src);
byte[] ret = SHA1.ComputeHash(src);
SHA1.Dispose();
return ret;
}
public static int fast_distance2d(int x, int y)