[FFmpeg-devel] [PATCH] indeo3: release buffer in decode_end()

Stefano Sabatini stefano.sabatini-lala at poste.it
Tue May 17 22:30:06 CEST 2011


Fix leak.
---
 libavcodec/indeo3.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 993850c..0f9a6d5 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -1132,6 +1132,9 @@ static av_cold int indeo3_decode_end(AVCodecContext *avctx)
 {
     Indeo3DecodeContext *s = avctx->priv_data;
 
+    if (s->frame.data[0])
+        avctx->release_buffer(avctx, &s->frame);
+
     av_freep(&s->buf);
     av_freep(&s->ModPred);
     av_freep(&s->corrector_type);
-- 
1.7.2.3



More information about the ffmpeg-devel mailing list