aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-12 18:57:12 +0100
committerMax Kellermann <max@duempel.org>2009-02-12 19:12:25 +0100
commit16bab6019ba400edf15960f6a887702aa85008dd (patch)
tree210574c6c50fce2dce0b796898a2cf02952b0f07 /src/update.c
parenta06e2814212b929c5079762b02390c849cfc116d (diff)
downloadmpd-16bab6019ba400edf15960f6a887702aa85008dd.tar.gz
mpd-16bab6019ba400edf15960f6a887702aa85008dd.tar.xz
mpd-16bab6019ba400edf15960f6a887702aa85008dd.zip
update: recursively purge deleted directories
When a directory is deleted, MPD deleted only the directory from the database; it did not bother to walk the full tree to free all memory and to remove deleted songs from the playlist. Replace a dirvec_delete() with delete_directory().
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c
index 216e40422..90b7cbe8f 100644
--- a/src/update.c
+++ b/src/update.c
@@ -225,7 +225,7 @@ removeDeletedFromDirectory(struct directory *directory)
continue;
g_debug("removing directory: %s", dv->base[i]->path);
- dirvec_delete(dv, dv->base[i]);
+ delete_directory(dv->base[i]);
modified = true;
}