[FFmpeg-cvslog] cavs: fix memleak

Michael Niedermayer git at videolan.org
Wed Aug 8 01:17:35 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug  8 01:06:22 2012 +0200| [e40f7f1e01f009637a37d3f5ad6e20c7e634153a] | committer: Michael Niedermayer

cavs: fix memleak

Fixes Ticket1335

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e40f7f1e01f009637a37d3f5ad6e20c7e634153a
---

 libavcodec/cavs.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c
index b6dcd2e..416bdce 100644
--- a/libavcodec/cavs.c
+++ b/libavcodec/cavs.c
@@ -701,6 +701,8 @@ av_cold int ff_cavs_init(AVCodecContext *avctx) {
 av_cold int ff_cavs_end(AVCodecContext *avctx) {
     AVSContext *h = avctx->priv_data;
 
+    ff_MPV_common_end(&h->s);
+
     av_free(h->top_qp);
     av_free(h->top_mv[0]);
     av_free(h->top_mv[1]);



More information about the ffmpeg-cvslog mailing list