From 6f71fb09b44e5b6ce3c21d214ed1a7a1b1ea3bc6 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Thu, 21 Feb 2019 20:45:40 +0800 Subject: [PATCH] Fix small typos --- SDWebImageWebPCoder/Classes/SDImageWebPCoder.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m b/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m index fae88be..d8bf67b 100644 --- a/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m +++ b/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m @@ -429,8 +429,8 @@ WebPChunkIterator chunk_iter; int result = WebPDemuxGetChunk(demuxer, "ICCP", 1, &chunk_iter); if (result) { - // See #2618, the `CGColorSpaceCreateWithICCProfile` does not copy ICC Profile data, it only retain the byte ptr. - // When the libwebp `WebPDemuxer` dealloc, all chunk will be freed. So we must copy the ICC data (really cheap, less than 10KB) + // See #2618, the `CGColorSpaceCreateWithICCProfile` does not copy ICC Profile data, it only retain `CFDataRef`. + // When the libwebp `WebPDemuxer` dealloc, all chunks will be freed. So we must copy the ICC data (really cheap, less than 10KB) NSData *profileData = [NSData dataWithBytes:chunk_iter.chunk.bytes length:chunk_iter.chunk.size]; colorSpaceRef = CGColorSpaceCreateWithICCProfile((__bridge CFDataRef)profileData); WebPDemuxReleaseChunkIterator(&chunk_iter);