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/auxeffectslot.cpp | |
parent | ecab99bce914c6c74351fb2d5878dd82d73b1fe2 (diff) |
Use new/delete for context and effectslot properties
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r-- | al/auxeffectslot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index e2dccb4d..b2f2c249 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -711,7 +711,7 @@ ALeffectslot::~ALeffectslot() { if(props->State) props->State->release(); TRACE("Freed unapplied AuxiliaryEffectSlot update %p\n", props); - al_free(props); + delete props; } if(Effect.State) @@ -725,7 +725,7 @@ void UpdateEffectSlotProps(ALeffectslot *slot, ALCcontext *context) /* Get an unused property container, or allocate a new one as needed. */ ALeffectslotProps *props{context->mFreeEffectslotProps.load(std::memory_order_relaxed)}; if(!props) - props = static_cast<ALeffectslotProps*>(al_calloc(16, sizeof(*props))); + props = new ALeffectslotProps{}; else { ALeffectslotProps *next; |