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 15, 2024
1 parent 379c136 commit 2be5e35
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 2be5e35

Please sign in to comment.