From 5dc3f3626d63361f4cefc829bce9aedb3c5774cf Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 20 Dec 2013 00:47:12 -0800 Subject: Better protect against improper alSoundfontSamplesSOFT calls --- Alc/midi/base.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Alc/midi') 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; -- cgit v1.2.3