Commit bedb82bf authored by Max Kellermann's avatar Max Kellermann

directory: free playlist vector in directory_free()

parent cbb1ab58
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment