Removed condition that is always true

This commit is contained in:
Andrew Murray 2025-04-03 00:03:42 +11:00
parent 7e15c54cad
commit b1ed311a3a

View File

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