Jesus Christ, release your CF* objects...
I recently (10 minutes ago) ran into a problem where I was using up a solid amount of memory with a
NSBitmapImageRep *rep = [[NSBitmapImageRep alloc] initWithData:data]; CGImageSourceRef src = CGImageSourceCreateWithData((__bridge CFDataRef)(data), nil);
Repeated method calls started using exorbitant amounts of memory due to the amount and size of the images. Why? Because I didn't release
If you create, copy, or explicitly retain (see the CFRetain function) a Core Foundation object, you are responsible for releasing it when you no longer need it.
Reading, am I right?