objc_autoreleasePoolPush()
and objc_autoreleasePoolPop()
are really supposed to be called at the beginning and at the and of an @autoreleasepool
block, respectively, from the code generated by the compiler, starting from OSX 10.7/ iOS 5.0. The missing compiler option is -fobjc-runtime=macosx-10.7
.
And, by the way, ARC has nothing to do with all this, so that @autoreleasepool
blocks make the compiler generate calls to those two functions even with ARC not enabled.