aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;