Removed condition that is always true (#8862)

This commit is contained in:
Andrew Murray 2025-04-03 21:17:54 +11:00 committed by GitHub
parent 7e15c54cad
commit 2d452c82e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -568,9 +568,7 @@ _encoder_add(AvifEncoderObject *self, PyObject *args) {
}
end:
if (&rgb) {
avifRGBImageFreePixels(&rgb);
}
avifRGBImageFreePixels(&rgb);
if (!self->first_frame) {
avifImageDestroy(frame);
}