aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-21 15:31:32 -0800
committerChris Robinson <[email protected]>2018-11-21 15:31:32 -0800
commiteefc379a239820a0711683455f5fadb20c8dbaf9 (patch)
tree1e9dbc8f266682cb176d35e235913181f261e025 /Alc/alc.cpp
parentdfcc98afbf574205e11826753f0a2c2abc7b922e (diff)
Use a unique_ptr for Uhj2Encoder
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index d9fa549a..2ad6c887 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -48,6 +48,7 @@
#include "alError.h"
#include "mastering.h"
#include "bformatdec.h"
+#include "uhjfilter.h"
#include "alu.h"
#include "alconfig.h"
#include "ringbuffer.h"
@@ -1987,7 +1988,6 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if((device->Flags&DEVICE_RUNNING))
return ALC_NO_ERROR;
- al_free(device->Uhj_Encoder);
device->Uhj_Encoder = nullptr;
al_free(device->Bs2b);
@@ -2428,9 +2428,6 @@ ALCdevice_struct::~ALCdevice_struct()
al_free(Bs2b);
Bs2b = nullptr;
- al_free(Uhj_Encoder);
- Uhj_Encoder = nullptr;
-
bformatdec_free(&AmbiDecoder);
ambiup_free(&AmbiUp);