Wherever you are calling initWithImage right now. You should make a loop that calls initWithImage repeatedly, for all the filenames in your array. Inside that loop you can create an autorelease pool, create the the image, call initWithImage, and then drain the autorelease pool.
If you don't use the autorelease pool, then the images are not autoreleased until the end of the current event - which causes a much bigger memory spike because they're all in memory at the same time.
__________________

Free Games!
|