From a0b5b680063618e81bca9d98d8e5f88c13cd69a3 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Thu, 15 Feb 2024 21:18:17 +0100 Subject: [PATCH] vmix/record: fix close avio mem leak --- modules/vmix/record.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/vmix/record.c b/modules/vmix/record.c index 76852e5..da754b7 100644 --- a/modules/vmix/record.c +++ b/modules/vmix/record.c @@ -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);