aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.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/panning.cpp
parentdfcc98afbf574205e11826753f0a2c2abc7b922e (diff)
Use a unique_ptr for Uhj2Encoder
Diffstat (limited to 'Alc/panning.cpp')
-rw-r--r--Alc/panning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp
index f538e347..c167c227 100644
--- a/Alc/panning.cpp
+++ b/Alc/panning.cpp
@@ -1199,7 +1199,7 @@ no_hrtf:
}
if(device->Render_Mode == NormalRender)
{
- device->Uhj_Encoder = reinterpret_cast<Uhj2Encoder*>(al_calloc(16, sizeof(Uhj2Encoder)));
+ device->Uhj_Encoder.reset(new Uhj2Encoder{});
TRACE("UHJ enabled\n");
InitUhjPanning(device);
return;