diff options
author | Chris Robinson <[email protected]> | 2019-08-13 22:25:59 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-13 22:25:59 -0700 |
commit | 351ccf2e11cfc429eeb76f7812565d0ed27043d5 (patch) | |
tree | b3ff80b389c5ba41bed0d61031ff3b0c028c4759 /al/state.cpp | |
parent | ecab99bce914c6c74351fb2d5878dd82d73b1fe2 (diff) |
Use new/delete for context and effectslot properties
Diffstat (limited to 'al/state.cpp')
-rw-r--r-- | al/state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/state.cpp b/al/state.cpp index 884aa9d2..64cbae6e 100644 --- a/al/state.cpp +++ b/al/state.cpp @@ -827,7 +827,7 @@ void UpdateContextProps(ALCcontext *context) /* Get an unused proprty container, or allocate a new one as needed. */ ALcontextProps *props{context->mFreeContextProps.load(std::memory_order_acquire)}; if(!props) - props = static_cast<ALcontextProps*>(al_calloc(16, sizeof(*props))); + props = new ALcontextProps{}; else { ALcontextProps *next; |