WWW out of memory, dynamic loading of textures.

Hi People.
I have a rather urgent issue, hoping someone can shed some light please.

I am using WWW to load in 2048x2048 png textures at runtime. I am cycling thru an increasing pool of images over time:

this.LoadFile 		= 	new WWW("file:///" + path);
		
yield return loadFile;
		
this.FrontLabel.renderer.material.mainTexture = loadFile.texture;	
		
this.LoadFile.Dispose();
this.LoadFile = null;

after running this for approx 5 minutes it crashes. OSX Activity Monitor shows a steadlily increasing Memory Load. How do I ensure unused WWW and textures are disposed of correctly?

thanks.

ahhh. Using LoadImageIntoTexture, plus Destroy was what I was missing:

Texture2D PhotoTexture
WWW LoadFile

this.LoadFile = new WWW(“file:///” + path);

yield return loadFile;

Destroy(PhotoTexture);

PhotoTexture = new Texture2D(2048,2048);

LoadFile.LoadImageIntoTexture(PhotoTexture);

gameObject.renderer.material.mainTexture = this.PhotoTexture;