Skip to content

Commit

Permalink
free tree
Browse files Browse the repository at this point in the history
  • Loading branch information
ravachol committed Feb 26, 2024
1 parent 0dbf185 commit 753135e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playerops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -1292,6 +1291,7 @@ void *updateLibraryThread(void *arg)

pthread_mutex_lock(&(playlist.mutex));

freeTree(library);
library = temp;
numDirectoryTreeEntries = tmpDirectoryTreeEntries;

Expand Down

0 comments on commit 753135e

Please sign in to comment.