diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2019-08-13 20:33:44 -0700 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2019-08-13 20:33:44 -0700 |
commit | 0806a003e2b359b173b84548d8b78a25e8b51ca3 (patch) | |
tree | 60fd0c38e32e8a051a643408ff3e6907f5ae8dda /al/listener.cpp | |
parent | 91ff01d1ad3c2995266902f41454c04e2b6e5d47 (diff) |
Use new/delete for listener properties
Diffstat (limited to 'al/listener.cpp')
-rw-r--r-- | al/listener.cpp | 2 |
1 files changed, 1 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; |