File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
SDWebImageAVIFCoder/Classes Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -451,6 +451,7 @@ static CGImageRef CreateImage8(avifImage * avif) {
451
451
goto end_alpha_mono;
452
452
}
453
453
result = CreateImageFromBuffer (avif, &outBuffer);
454
+ outBufferData = NULL ;
454
455
end_alpha_mono:
455
456
free (tmpBufferData);
456
457
free (monoBufferData);
@@ -462,6 +463,7 @@ static CGImageRef CreateImage8(avifImage * avif) {
462
463
goto end_alpha_color;
463
464
}
464
465
result = CreateImageFromBuffer (avif, &argbBuffer);
466
+ outBufferData = NULL ;
465
467
end_alpha_color:
466
468
goto end_alpha;
467
469
}
@@ -486,6 +488,7 @@ static CGImageRef CreateImage8(avifImage * avif) {
486
488
goto end_no_alpha_mono;
487
489
}
488
490
result = CreateImageFromBuffer (avif, &outBuffer);
491
+ outBufferData = NULL ;
489
492
end_no_alpha_mono:
490
493
free (tmpBufferData);
491
494
goto end_no_alpha;
@@ -496,6 +499,7 @@ static CGImageRef CreateImage8(avifImage * avif) {
496
499
goto end_no_alpha_color;
497
500
}
498
501
result = CreateImageFromBuffer (avif, &outBuffer);
502
+ outBufferData = NULL ;
499
503
end_no_alpha_color:
500
504
goto end_no_alpha;
501
505
}
You can’t perform that action at this time.
0 commit comments