appcelerator/titanium_mobile — pull request #6045 by shopmium (2014-09-10 15:55:17+00:00)
Title: Fix crash TiBase : TiThreadProcessPendingMainThreadBlocks

We have a recurring error on Crashlytics for iOS platform :
TiBase.m line 279
__destroy_helper_block_187
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0xc0000010
0 libobjc.A.dylib 0x3b2ca7ea objc_release + 9
1 libsystem_blocks.dylib 0x3b7f2ac5 _Block_release + 216
2 MyApp 0x000dd697 __destroy_helper_block_187 (TiBase.m:279)
3 libsystem_blocks.dylib 0x3b7f2ac5 _Block_release + 216
4 MyApp 0x000dd839 TiThreadProcessPendingMainThreadBlocks (TiBase.m:366)

To fix this error we use autorelease for "thisAction" and we replace NSAutoreleasePool with new syntax : @autoreleasepool.

Do you think this fix is appropriate?

Thanks for your help