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/kmvc.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/kmvc.c')
-rw-r--r-- | libavcodec/kmvc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/kmvc.c b/libavcodec/kmvc.c index 036efa5593..9623173fc1 100644 --- a/libavcodec/kmvc.c +++ b/libavcodec/kmvc.c @@ -395,10 +395,8 @@ static int decode_end(AVCodecContext * avctx) { KmvcContext *const c = (KmvcContext *) avctx->priv_data; - if (c->frm0) - av_free(c->frm0); - if (c->frm1) - av_free(c->frm1); + av_freep(&c->frm0); + av_freep(&c->frm1); if (c->pic.data[0]) avctx->release_buffer(avctx, &c->pic); |