aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-23 01:49:05 -0700
committerEric Wong <normalperson@yhbt.net>2008-09-23 01:49:05 -0700
commit31ac18277f2789383c2f2de2edb75d604b722ecf (patch)
tree48c16f528106f7afb914139f35f6cbef8eb85518 /src/directory.c
parent55d3b528163511b3ca9172dabfbb093ea2c8b0ae (diff)
downloadmpd-31ac18277f2789383c2f2de2edb75d604b722ecf.tar.gz
mpd-31ac18277f2789383c2f2de2edb75d604b722ecf.tar.xz
mpd-31ac18277f2789383c2f2de2edb75d604b722ecf.zip
directory: use songvec_free to prevent memory leaks.
Diffstat (limited to '')
-rw-r--r--src/directory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/directory.c b/src/directory.c
index 626dc7452..40acfa746 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -131,8 +131,7 @@ void reap_update_task(void)
int i;
for (i = reap_songs.nr; --i >= 0; )
freeSong(reap_songs.base[i]);
- reap_songs.nr = 0;
- reap_songs.base = NULL;
+ songvec_free(&reap_songs);
}
pthread_join(update_thr, NULL);
progress = UPDATE_PROGRESS_IDLE;