From e656688fbea123b5f0467caff085f88ec44fa4e4 Mon Sep 17 00:00:00 2001 From: moritz Date: Wed, 7 Mar 2007 23:39:53 +0000 Subject: [PATCH] Remove redundant code since the switch to xfree(). git-svn-id: https://svn.xiph.org/trunk/ezstream@12676 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- src/playlist.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/playlist.c b/src/playlist.c index 7434307..8f7c174 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -241,31 +241,26 @@ playlist_free(playlist_t *pl) 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; } }