Added Autoreleasepool annotations for iOS

AutoreleasePool annotation needed to prevent memleaks on iOS code.