aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-25 13:31:39 +0200
committerMax Kellermann <max@duempel.org>2010-07-25 13:31:39 +0200
commitbedb82bf4d88a533e37f330665ff67d031f31cb8 (patch)
tree6e295f6c138ac0b5923870b5c3d93530566f2a8c /src/directory.c
parentcbb1ab58cdf18b59488d543427cd4ec238426bf8 (diff)
downloadmpd-bedb82bf4d88a533e37f330665ff67d031f31cb8.tar.gz
mpd-bedb82bf4d88a533e37f330665ff67d031f31cb8.tar.xz
mpd-bedb82bf4d88a533e37f330665ff67d031f31cb8.zip
directory: free playlist vector in directory_free()
Diffstat (limited to '')
-rw-r--r--src/directory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/directory.c b/src/directory.c
index 0a466a517..fa15d41b1 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -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]);