diff options
Diffstat (limited to 'al')
-rw-r--r-- | al/listener.cpp | 2 | ||||
-rw-r--r-- | al/listener.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/al/listener.cpp b/al/listener.cpp index bcee0b08..402d8a27 100644 --- a/al/listener.cpp +++ b/al/listener.cpp @@ -421,7 +421,7 @@ void UpdateListenerProps(ALCcontext *context) /* Get an unused proprty container, or allocate a new one as needed. */ ALlistenerProps *props{context->mFreeListenerProps.load(std::memory_order_acquire)}; if(!props) - props = static_cast<ALlistenerProps*>(al_calloc(16, sizeof(*props))); + props = new ALlistenerProps{}; else { ALlistenerProps *next; diff --git a/al/listener.h b/al/listener.h index 05d93d19..1b440bca 100644 --- a/al/listener.h +++ b/al/listener.h @@ -8,6 +8,7 @@ #include "AL/alc.h" #include "AL/efx.h" +#include "almalloc.h" #include "vecmat.h" enum class DistanceModel; @@ -22,6 +23,8 @@ struct ALlistenerProps { ALfloat MetersPerUnit; std::atomic<ALlistenerProps*> next; + + DEF_NEWDEL(ALlistenerProps) }; struct ALlistener { |