memleak fix
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 17 Feb 2005 00:00:20 +0000 (00:00 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 17 Feb 2005 00:00:20 +0000 (00:00 +0000)
Originally committed as revision 3962 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/tscc.c

index 6cc9ca8..1094044 100644 (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