window/gl: prevent iOS buffer to be prefetched by correctly cleaning all the sub buffers.
imageio: fix another leak