diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-13 18:28:37 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-13 18:28:37 +0000 |
commit | 4b5fee0205a825e5f0c7b414af6776803e55a78e (patch) | |
tree | e25b07c1d3487879841792f651d70e0ef725fdb3 | |
parent | d8b35b8586714bbd9930e677bcb1ed3738415553 (diff) | |
download | ffmpeg-4b5fee0205a825e5f0c7b414af6776803e55a78e.tar.gz |
Add missing release_buffer on close
Originally committed as revision 20227 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/4xm.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |