leak fixed when worked with cocoapods.

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