diff --git a/src/playerops.c b/src/playerops.c index 9411a67..e28b2be 100644 --- a/src/playerops.c +++ b/src/playerops.c @@ -1282,7 +1282,6 @@ int loadFirst(Node *song) return 0; } -// Thread function signature must match what pthreads expect void *updateLibraryThread(void *arg) { char *path = (char *)arg; @@ -1292,6 +1291,7 @@ void *updateLibraryThread(void *arg) pthread_mutex_lock(&(playlist.mutex)); + freeTree(library); library = temp; numDirectoryTreeEntries = tmpDirectoryTreeEntries;