From 17e2c21dd23bd0bce49b10bc11595a08747832e4 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 13 Oct 2009 18:28:37 +0000 Subject: [PATCH] Add missing release_buffer on close git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20227 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/4xm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index cc0bcd4f86..d2172ba256 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -832,6 +832,10 @@ static av_cold int decode_end(AVCodecContext *avctx){ f->cfrm[i].allocated_size= 0; } free_vlc(&f->pre_vlc); + if(f->current_picture.data[0]) + avctx->release_buffer(avctx, &f->current_picture); + if(f->last_picture.data[0]) + avctx->release_buffer(avctx, &f->last_picture); return 0; } -- 2.11.4.GIT