Skip to content

Commit

Permalink
Free Mutex on Error path
Browse files Browse the repository at this point in the history
  • Loading branch information
alesliehughes authored and flibitijibibo committed Jan 14, 2023
1 parent 3c8e7cc commit a58f1db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FACT.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ uint32_t FACTAudioEngine_Initialize(
NULL
) != 0) {
FAudio_Release(pEngine->audio);
FAudio_PlatformUnlockMutex(pEngine->apiLock);
return FAUDIO_E_INVALID_CALL;
}
}
Expand Down

0 comments on commit a58f1db

Please sign in to comment.