Skip to content

Commit 6f71fb0

Browse files
committed
Fix small typos
1 parent 6dcdec2 commit 6f71fb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SDWebImageWebPCoder/Classes/SDImageWebPCoder.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ - (nonnull CGColorSpaceRef)sd_colorSpaceWithDemuxer:(nonnull WebPDemuxer *)demux
429429
WebPChunkIterator chunk_iter;
430430
int result = WebPDemuxGetChunk(demuxer, "ICCP", 1, &chunk_iter);
431431
if (result) {
432-
// See #2618, the `CGColorSpaceCreateWithICCProfile` does not copy ICC Profile data, it only retain the byte ptr.
433-
// When the libwebp `WebPDemuxer` dealloc, all chunk will be freed. So we must copy the ICC data (really cheap, less than 10KB)
432+
// See #2618, the `CGColorSpaceCreateWithICCProfile` does not copy ICC Profile data, it only retain `CFDataRef`.
433+
// When the libwebp `WebPDemuxer` dealloc, all chunks will be freed. So we must copy the ICC data (really cheap, less than 10KB)
434434
NSData *profileData = [NSData dataWithBytes:chunk_iter.chunk.bytes length:chunk_iter.chunk.size];
435435
colorSpaceRef = CGColorSpaceCreateWithICCProfile((__bridge CFDataRef)profileData);
436436
WebPDemuxReleaseChunkIterator(&chunk_iter);

0 commit comments

Comments
 (0)