diff options
author | Chris Robinson <[email protected]> | 2013-12-23 23:31:47 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-23 23:31:47 -0800 |
commit | c911ca89a328438aa5d654ed35e587d271641e97 (patch) | |
tree | 3d56cf8b5b7e88257075bd2c7080d26770885853 | |
parent | a43b296c60619e20095bdddcdaf0ad8e5ab87549 (diff) |
Unlock the soundfont earlier after switching preset lists
-rw-r--r-- | OpenAL32/alSoundfont.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenAL32/alSoundfont.c b/OpenAL32/alSoundfont.c index 1ccb7b69..7b19ccb6 100644 --- a/OpenAL32/alSoundfont.c +++ b/OpenAL32/alSoundfont.c @@ -289,13 +289,12 @@ AL_API void AL_APIENTRY alSoundfontPresetsSOFT(ALuint id, ALsizei count, const A presets = ExchangePtr((XchgPtr*)&sfont->Presets, presets); count = ExchangeInt(&sfont->NumPresets, count); + WriteUnlock(&sfont->Lock); for(i = 0;i < count;i++) DecrementRef(&presets[i]->ref); free(presets); - WriteUnlock(&sfont->Lock); - done: ALCcontext_DecRef(context); } |