mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-12-04 14:46:31 -05:00
Remove redundant code since the switch to xfree().
git-svn-id: https://svn.xiph.org/trunk/ezstream@12676 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
parent
ca41d8cac8
commit
e656688fbe
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user