diff options
Diffstat (limited to 'libavcodec/zmbv.c')
-rw-r--r-- | libavcodec/zmbv.c | 6 |
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; } |