diff --git a/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp b/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp index 1bc724eb73..5f4af7137f 100644 --- a/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp +++ b/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp @@ -372,10 +372,10 @@ AVFormatWriter::~AVFormatWriter() TRACE("AVFormatWriter::~AVFormatWriter\n"); // Free the streams and close the AVCodecContexts - for(unsigned i = 0; i < fFormatContext->nb_streams; i++) { + for (unsigned i = 0; i < fFormatContext->nb_streams; i++) { av_freep(&fFormatContext->streams[i]->codecpar); av_freep(&fFormatContext->streams[i]); - } + } av_free(fFormatContext); av_free(fIOContext->buffer);