Fix the `sd_isDecoded` did not set after we use SDCGImageCreateCopy

This commit is contained in:
DreamPiggy 2022-11-07 12:20:04 +08:00
parent db25af9506
commit 3000dd5098
1 changed files with 2 additions and 0 deletions

View File

@ -309,6 +309,8 @@ static CGImageRef __nullable SDCGImageCreateCopy(CGImageRef cg_nullable image) {
UIImage *image = [[UIImage alloc] initWithCGImage:imageRef scale:scale orientation:exifOrientation];
#endif
CGImageRelease(imageRef);
image.sd_isDecoded = isDecoded;
return image;
}