So, I’m programming a plugin that loads data from an external file. Some of this data is .png images. After I have the data in memory I load the images using ImageCache::getFromMemory(). It seems that the cache stores the .png data not just the raw pixel data after decompression. This means I can’t release the memory after creating the Image, or things go south.
The question is who’s responsibility is it to later delete the .png data? Does the ImageCache take care of this or do I need to do it manually?