diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2018-11-22 06:49:37 -0800 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2018-11-22 06:49:37 -0800 |
commit | 9d73e03aaa6d51d6b787b0d576760f782fc3394f (patch) | |
tree | 5fa306fa15d385db3d72098ac870dcd204b4ce7b /Alc/alc.cpp | |
parent | b3b42201828bb737c55c20bd46af10b40d10ef85 (diff) |
Use unique_ptr for bs2b
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r-- | Alc/alc.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp index d96f6df0..4c724fd6 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -53,6 +53,7 @@ #include "alconfig.h" #include "ringbuffer.h" #include "filters/splitter.h" +#include "bs2b.h" #include "fpu_modes.h" #include "cpu_caps.h" @@ -1990,8 +1991,6 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) return ALC_NO_ERROR; device->Uhj_Encoder = nullptr; - - al_free(device->Bs2b); device->Bs2b = nullptr; device->ChannelDelay.clear(); @@ -2421,9 +2420,6 @@ ALCdevice_struct::~ALCdevice_struct() HrtfHandle = nullptr; al_free(Hrtf); Hrtf = nullptr; - - al_free(Bs2b); - Bs2b = nullptr; } |