ffmpeg: fix memleak
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Jun 2012 10:31:13 +0000 (12:31 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Jun 2012 10:31:13 +0000 (12:31 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 849bd70..f654a2b 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1499,6 +1499,7 @@ void av_noreturn exit_program(int ret)
         output_streams[i]->bitstream_filters = NULL;
 
         av_freep(&output_streams[i]->filtered_frame);
+        av_freep(&output_streams[i]->avfilter);
         av_freep(&output_streams[i]);
     }
     for (i = 0; i < nb_input_files; i++) {