directory: fix leak introduced with threaded update

Use freeList() instead of free() to free all elements in
the list.
This commit is contained in:
Eric Wong 2008-09-23 22:38:39 +02:00 committed by Max Kellermann
parent 260e1a9037
commit 74b34f7b61
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ static void * update_task(void *arg)
}
node = node->nextNode;
}
free(path_list);
freeList(path_list);
} else {
ret = updateDirectory(mp3rootDirectory);
}