diff zmbv.c @ 3694:8765ee4eaa45 libavcodec

Drop unneeded checks before av_free() and change to av_freep() where it's more suitable.
author kostya
date Sat, 09 Sep 2006 11:40:41 +0000
parents 03af25454cc3
children 9b75ab171fa9
line wrap: on
line diff
--- a/zmbv.c	Sat Sep 09 11:32:36 2006 +0000
+++ b/zmbv.c	Sat Sep 09 11:40:41 2006 +0000
@@ -671,10 +671,8 @@
 #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;
 }