aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-02-09 05:56:37 -0800
committerChris Robinson <[email protected]>2015-02-09 05:56:37 -0800
commita925fb8111b1ee34e96df808e0d225e65805283e (patch)
tree5348afda5a0429e1d68158a6be12347e996cd4c7
parent61755f35c1f0b54d827ef3bfbaaab860d8459357 (diff)
Make sure the BS2B filter is freed if HRTF is enabled
-rw-r--r--Alc/ALc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index a9f71032..baf7f01b 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2004,7 +2004,11 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(usehrtf)
device->Hrtf = GetHrtf(device->FmtChans, device->Frequency);
if(device->Hrtf)
+ {
TRACE("HRTF enabled\n");
+ free(device->Bs2b);
+ device->Bs2b = NULL;
+ }
else
{
device->Flags &= ~DEVICE_HRTF_REQUEST;