Mercurial > libavcodec.hg
comparison tscc.c @ 2510:5e9f8eef19b9 libavcodec
memleak fix
author | michael |
---|---|
date | Thu, 17 Feb 2005 00:00:20 +0000 |
parents | 0803adcb3ec3 |
children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
2509:b3b06ba8787c | 2510:5e9f8eef19b9 |
---|---|
303 */ | 303 */ |
304 static int decode_end(AVCodecContext *avctx) | 304 static int decode_end(AVCodecContext *avctx) |
305 { | 305 { |
306 CamtasiaContext * const c = (CamtasiaContext *)avctx->priv_data; | 306 CamtasiaContext * const c = (CamtasiaContext *)avctx->priv_data; |
307 | 307 |
308 av_freep(&c->decomp_buf); | |
309 | |
308 if (c->pic.data[0]) | 310 if (c->pic.data[0]) |
309 avctx->release_buffer(avctx, &c->pic); | 311 avctx->release_buffer(avctx, &c->pic); |
310 #ifdef CONFIG_ZLIB | 312 #ifdef CONFIG_ZLIB |
311 inflateEnd(&(c->zstream)); | 313 inflateEnd(&(c->zstream)); |
312 #endif | 314 #endif |