fixed a memoryt leak

the Texture2D.SaveAsPng() is known have a memory leak;