aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/zmbv.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2006-09-09 11:40:41 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2006-09-09 11:40:41 +0000
commit34a8dcd031d637273cdea021e5a79cf720c4c51c (patch)
tree40a2a8301286e80e82e982d5ebbaf7f31ba4b9ed /libavcodec/zmbv.c
parent767516533df0f68fe2906990b6cf0d7d3061495d (diff)
downloadffmpeg-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/zmbv.c')
-rw-r--r--libavcodec/zmbv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c
index fd8497dd30..fdca4d2a28 100644
--- a/libavcodec/zmbv.c
+++ b/libavcodec/zmbv.c
@@ -671,10 +671,8 @@ static int decode_end(AVCodecContext *avctx)
#ifdef CONFIG_ZLIB
inflateEnd(&(c->zstream));
#endif
- if(c->cur)
- av_freep(&c->cur);
- if(c->prev)
- av_freep(&c->prev);
+ av_freep(&c->cur);
+ av_freep(&c->prev);
return 0;
}