Skip to content

Commit 2d452c8

Browse files
authored
Removed condition that is always true (#8862)
1 parent 7e15c54 commit 2d452c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/_avif.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,7 @@ _encoder_add(AvifEncoderObject *self, PyObject *args) {
568568
}
569569

570570
end:
571-
if (&rgb) {
572-
avifRGBImageFreePixels(&rgb);
573-
}
571+
avifRGBImageFreePixels(&rgb);
574572
if (!self->first_frame) {
575573
avifImageDestroy(frame);
576574
}

0 commit comments

Comments
 (0)