Skip to content

Commit

Permalink
Take lock before accessing list in LinkedList_RemoveEntry()
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Gofman authored and flibitijibibo committed Feb 27, 2024
1 parent 38e9da7 commit bebb082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FAudio_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ void LinkedList_RemoveEntry(
FAudioFreeFunc pFree
) {
LinkedList *latest, *prev;
FAudio_PlatformLockMutex(lock);
latest = *start;
prev = latest;
FAudio_PlatformLockMutex(lock);
while (latest != NULL)
{
if (latest->entry == toRemove)
Expand Down

0 comments on commit bebb082

Please sign in to comment.