mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
Fix incorrect free on error
This commit is contained in:
parent
4103bd2786
commit
3661f3f3f5
|
@ -192,7 +192,7 @@ int main(int argc, char *argv[])
|
|||
img_in = frame_in;
|
||||
} else {
|
||||
// EOF or some error
|
||||
api->picture_free(img_in);
|
||||
api->picture_free(frame_in);
|
||||
img_in = NULL;
|
||||
if (!feof(input)) {
|
||||
fprintf(stderr, "Failed to read a frame %d\n", frames_read);
|
||||
|
|
Loading…
Reference in a new issue