From a4e89ff89449797728db965a4f6260b0b3afa64c Mon Sep 17 00:00:00 2001 From: JackBurton79 Date: Tue, 14 Aug 2018 13:48:54 +0200 Subject: [PATCH] AVFormatWriter: free the context with the correct function --- src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp b/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp index 5f4af7137f..3fc7df357e 100644 --- a/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp +++ b/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp @@ -377,7 +377,7 @@ AVFormatWriter::~AVFormatWriter() av_freep(&fFormatContext->streams[i]); } - av_free(fFormatContext); + avformat_free_context(fFormatContext); av_free(fIOContext->buffer); av_free(fIOContext); }