[xiph-commits] r12676 - trunk/ezstream/src

moritz at svn.xiph.org moritz at svn.xiph.org
Wed Mar 7 15:39:55 PST 2007


Author: moritz
Date: 2007-03-07 15:39:53 -0800 (Wed, 07 Mar 2007)
New Revision: 12676

Modified:
   trunk/ezstream/src/playlist.c
Log:
Remove redundant code since the switch to xfree().


Modified: trunk/ezstream/src/playlist.c
===================================================================
--- trunk/ezstream/src/playlist.c	2007-03-07 22:28:11 UTC (rev 12675)
+++ trunk/ezstream/src/playlist.c	2007-03-07 23:39:53 UTC (rev 12676)
@@ -241,31 +241,26 @@
 	size_t	i;
 
 	if (pl != NULL) {
-		if (pl->filename != NULL) {
+		if (pl->filename != NULL)
 			xfree(pl->filename);
-			pl->filename = NULL;
-		}
 
 		if (pl->list != NULL) {
 			if (pl->size > 0) {
 				for (i = 0; i < pl->size / sizeof(char *); i++) {
-					if (pl->list[i] != NULL) {
+					if (pl->list[i] != NULL)
 						xfree(pl->list[i]);
-						pl->list[i] = NULL;
-					} else
+					else
 						break;
 				}
 			}
 
 			xfree(pl->list);
-			pl->list = NULL;
 		}
 
 		if (pl->prog_track != NULL)
 			xfree(pl->prog_track);
 
 		xfree(pl);
-		pl = NULL;
 	}
 }
 



More information about the commits mailing list