aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;