diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-09-09 11:40:41 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-09-09 11:40:41 +0000 |
commit | 34a8dcd031d637273cdea021e5a79cf720c4c51c (patch) | |
tree | 40a2a8301286e80e82e982d5ebbaf7f31ba4b9ed /libavcodec/smacker.c | |
parent | 767516533df0f68fe2906990b6cf0d7d3061495d (diff) | |
download | ffmpeg-34a8dcd031d637273cdea021e5a79cf720c4c51c.tar.gz |
Drop unneeded checks before av_free() and change to av_freep() where it's more suitable.
Originally committed as revision 6212 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/smacker.c')
-rw-r--r-- | libavcodec/smacker.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c index 162c68ada3..2d4c1e242b 100644 --- a/libavcodec/smacker.c +++ b/libavcodec/smacker.c @@ -550,14 +550,10 @@ static int decode_end(AVCodecContext *avctx) { SmackVContext * const smk = (SmackVContext *)avctx->priv_data; - if(smk->mmap_tbl) - av_free(smk->mmap_tbl); - if(smk->mclr_tbl) - av_free(smk->mclr_tbl); - if(smk->full_tbl) - av_free(smk->full_tbl); - if(smk->type_tbl) - av_free(smk->type_tbl); + av_freep(&smk->mmap_tbl); + av_freep(&smk->mclr_tbl); + av_freep(&smk->full_tbl); + av_freep(&smk->type_tbl); if (smk->pic.data[0]) avctx->release_buffer(avctx, &smk->pic); |