diff libvo/vo_directx.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 983577adcf0e
children 899d817e56fc
line wrap: on
line diff
--- a/libvo/vo_directx.c	Sat Nov 13 10:23:34 2010 +0000
+++ b/libvo/vo_directx.c	Sun Nov 14 09:12:34 2010 +0000
@@ -1182,8 +1182,7 @@
 	        mp_msg(MSGT_VO,MSGL_WARN,"<vo_directx><WARN>stride changed !!!! disabling direct rendering\n");
 	        vo_directrendering=0;
 	    }
-	    if (tmp_image)
-		    free(tmp_image);
+	    free(tmp_image);
 	    tmp_image = NULL;
 	    dstride = ddsdsf.lPitch;
 	    image = ddsdsf.lpSurface;