diff xvid_vbr.c @ 32511:b39155e98ac3

Remove some useless NULL pointer checks before invoking free() on the pointer. patch by From: Clment Bsch, ubitux gmail com
author diego
date Sun, 07 Nov 2010 12:47:40 +0000
parents 0f1b5b68af32
children 3ca6a7d60396
line wrap: on
line diff
--- a/xvid_vbr.c	Sun Nov 07 11:03:47 2010 +0000
+++ b/xvid_vbr.c	Sun Nov 07 12:47:40 2010 +0000
@@ -1580,8 +1580,7 @@
 		return(-1);
 
 	/* Free the memory */
-	if(state->keyframe_locations)
-		free(state->keyframe_locations);
+	free(state->keyframe_locations);
 
 	return(0);