From 31ac18277f2789383c2f2de2edb75d604b722ecf Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 23 Sep 2008 01:49:05 -0700 Subject: directory: use songvec_free to prevent memory leaks. --- src/directory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3