leak fixed when workd with cocoapods.

@BradLarson 
Please review this codes. Thanks.
https://github.com/CocoaPods/CocoaPods/issues/1001
https://github.com/BradLarson/GPUImage/issues/1748