From 4b7ac4a6ed290182de945274afd90fc4cece0283 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 30 Nov 2018 16:56:23 -0800 Subject: Don't bother making ALvoiceProps dynamically sized --- OpenAL32/alSource.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'OpenAL32/alSource.cpp') diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index c0e48c5c..87729c73 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -68,9 +68,7 @@ void UpdateSourceProps(ALsource *source, ALvoice *voice, ALCcontext *context) /* Get an unused property container, or allocate a new one as needed. */ ALvoiceProps *props{context->FreeVoiceProps.load(std::memory_order_acquire)}; if(!props) - props = static_cast(al_calloc(16, - FAM_SIZE(ALvoiceProps, Send, source->Send.size())) - ); + props = new ALvoiceProps{}; else { ALvoiceProps *next; -- cgit v1.2.3