diff libvo/vo_png.c @ 32537:8fa2f43cb760

Remove most of the NULL pointer check before free all over the code
author cboesch
date Sun, 14 Nov 2010 09:12:34 +0000
parents f4e017b6921a
children f03a237a8d26
line wrap: on
line diff
--- a/libvo/vo_png.c	Sat Nov 13 10:23:34 2010 +0000
+++ b/libvo/vo_png.c	Sun Nov 14 09:12:34 2010 +0000
@@ -199,10 +199,8 @@
     av_freep(&avctx);
     av_freep(&outbuffer);
     outbuffer_size = 0;
-    if (png_outdir) {
-        free(png_outdir);
-        png_outdir = NULL;
-    }
+    free(png_outdir);
+    png_outdir = NULL;
 }
 
 static void check_events(void){}