Fix autorelease memory leak issue for iOS 5.0.

Reviewer: @aogilvie