workaround potencial memory leak
parent
39e92adaf2
commit
9953dad3a9
|
@ -706,7 +706,9 @@ namespace OpenSim.Framework
|
||||||
private static byte[] ComputeSHA1Hash(byte[] src)
|
private static byte[] ComputeSHA1Hash(byte[] src)
|
||||||
{
|
{
|
||||||
SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider();
|
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)
|
public static int fast_distance2d(int x, int y)
|
||||||
|
|
Loading…
Reference in New Issue