memleak fix

Originally committed as revision 3962 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2005-02-17 00:00:20 +00:00
parent 3d38fd1cd4
commit c2d57a34d0
1 changed files with 2 additions and 0 deletions

View File

@ -305,6 +305,8 @@ static int decode_end(AVCodecContext *avctx)
{
CamtasiaContext * const c = (CamtasiaContext *)avctx->priv_data;
av_freep(&c->decomp_buf);
if (c->pic.data[0])
avctx->release_buffer(avctx, &c->pic);
#ifdef CONFIG_ZLIB