Skip to content

Commit

Permalink
Using Clang Analyzer and fix some memory issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dreampiggy committed Jan 30, 2023
1 parent dc7c0ba commit 33ad65f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SDWebImageAVIFCoder/Classes/Conversion.m
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,7 @@ static CGImageRef CreateCGImage16U(avifImage * avif) {
err = vImageConvert_Planar8toARGB8888(&alphaBuffer1, &alphaBuffer2, &monoBuffer1, &monoBuffer2, &resultBuffer, kvImageNoFlags);
if(err != kvImageNoError) {
free(resultBufferData);
resultBufferData = NULL;
NSLog(@"Failed to convert Planar Alpha + Mono to MonoA: %ld", err);
goto end_alpha_mono;
}
Expand Down

0 comments on commit 33ad65f

Please sign in to comment.