提交 933d714d 编写于 作者: C CoderWangx

处理二维码生成方法中的潜在内存泄露警告

上级 78ff049f
......@@ -555,11 +555,15 @@ void ProviderReleaseData (void *info, const void *data, size_t size){
// 保存bitmap到图片
CGImageRef scaledImage = CGBitmapContextCreateImage(bitmap);
CGImageRef scaledImageRef = CGBitmapContextCreateImage(bitmap);
CGColorSpaceRelease(cs);
CGContextRelease(bitmap);
CGImageRelease(bitmapImage);
return [UIImage imageWithCGImage:scaledImage];
UIImage *scaledImage = [UIImage imageWithCGImage:scaledImageRef];
CGImageRelease(scaledImageRef);
return scaledImage;
}
......
......@@ -66,7 +66,7 @@ DEPENDENCIES:
- SDWebImage (= 5.0.6)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
https://github.com/CocoaPods/Specs.git:
- AFNetworking
- BSBacktraceLogger
- CocoaLumberjack
......@@ -93,4 +93,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: d747f8dae925396a2f5b00631d88a58656e30600
COCOAPODS: 1.6.2
COCOAPODS: 1.8.4
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册