summaryrefslogtreecommitdiff
path: root/libavcodec/indeo3.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-17 13:01:21 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-20 09:34:57 +0200
commit7f58eb3c2b552f232905731b5944307e72c590a0 (patch)
treefbd22972d25fe094abaa60758d343cab94c582ae /libavcodec/indeo3.c
parent5443812fbcc7c12f783c1328539232cb3bcde9e1 (diff)
indeo3: release buffer in indeo3_decode_end()
Fix leak.
Diffstat (limited to 'libavcodec/indeo3.c')
-rw-r--r--libavcodec/indeo3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 7a648cd3f3..b74fcf7c22 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -1137,6 +1137,9 @@ static av_cold int indeo3_decode_end(AVCodecContext *avctx)
iv_free_func(s);
+ if (s->frame.data[0])
+ avctx->release_buffer(avctx, &s->frame);
+
return 0;
}