From 0806a003e2b359b173b84548d8b78a25e8b51ca3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 13 Aug 2019 20:33:44 -0700 Subject: Use new/delete for listener properties --- al/listener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'al/listener.cpp') 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(al_calloc(16, sizeof(*props))); + props = new ALlistenerProps{}; else { ALlistenerProps *next; -- cgit v1.2.3