diff options
author | Chris Robinson <[email protected]> | 2013-12-20 00:47:12 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-20 00:50:43 -0800 |
commit | 5dc3f3626d63361f4cefc829bce9aedb3c5774cf (patch) | |
tree | 0cf6fa3fd2c593591f93a898250b7d34f55e6990 /Alc | |
parent | d596cf9cf32302b122a59ae2d5313bd8d051b479 (diff) |
Better protect against improper alSoundfontSamplesSOFT calls
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/midi/base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/midi/base.c b/Alc/midi/base.c index f39aaba3..a5c50504 100644 --- a/Alc/midi/base.c +++ b/Alc/midi/base.c @@ -429,6 +429,7 @@ void ALsoundfont_Construct(ALsoundfont *self) self->Samples = NULL; self->NumSamples = 0; + RWLockInit(&self->Lock); self->Mapped = AL_FALSE; self->id = 0; |