directory: free playlist vector in directory_free()

This commit is contained in:
Max Kellermann 2010-07-25 13:31:39 +02:00
parent cbb1ab58cd
commit bedb82bf4d

View File

@ -50,6 +50,8 @@ directory_new(const char *path, struct directory *parent)
void
directory_free(struct directory *directory)
{
playlist_vector_deinit(&directory->playlists);
for (unsigned i = 0; i < directory->songs.nr; ++i)
song_free(directory->songs.base[i]);