Skip to content

Commit

Permalink
vmix/record: fix close avio mem leak
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Feb 16, 2024
1 parent 4086af1 commit a0b5b68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/vmix/record.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ int vmix_record_close(void)

/* Write the trailer and close the output file */
av_write_trailer(record.outputFormatContext);
avio_close(record.outputFormatContext->pb);

/* Clean up */
avcodec_close(record.videoCodecContext);
Expand Down

0 comments on commit a0b5b68

Please sign in to comment.