ilCloseImage leaks memory when closing cube maps
A full featured cross-platform image library
Brought to you by:
doomwiz
ilCloseImage has a cut&paste bug which leads to memory leaks when dealing with cubemaps that have mipmaps. The "if (Image->foo != NULL) { ilCloseImage(Image->foo); Image->foo = NULL; }" closes the additional Faces, but then resets the Mipmaps member and then the mipmaps themselves are never closed.
Oh, this was seen in the 1.7.8 version.