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