deallocating memory for ofImage

I am dealing with a lot of images since I’m building a imageSequence class using a linked list.

I saw the memory use increasing after loading hundreds of images so I added an extra unload function to ofImage. I don’t know if it’s the way to go but it helps for me.

  
void ofImage::unload() {  
	tex.clear();  
	FreeImage_Unload(IMG->bmp);  
	delete IMG->pixels;  
}  

btw. I’m using OF since one week now and I’m really happy with it. Thanks zach & theo

great -

thanks for posting this, and very glad you are enjoying OF

we’ve fixed that issue in 0.03, please let me know if that helps !

take care,
zach