aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alAuxEffectSlot.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-05 17:25:08 -0700
committerChris Robinson <[email protected]>2019-06-05 17:25:08 -0700
commit5f26205f8fb504c5f6fec3e2b02f0009a4f24be2 (patch)
tree606172569e4f406a11cbef0bd9bc3fc8d59c6d06 /OpenAL32/alAuxEffectSlot.cpp
parentf27e73989c9831cde96880edafb01e662a7de2db (diff)
Properly destroy other objects
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.cpp')
-rw-r--r--OpenAL32/alAuxEffectSlot.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/alAuxEffectSlot.cpp b/OpenAL32/alAuxEffectSlot.cpp
index eeb545c9..4c7b3507 100644
--- a/OpenAL32/alAuxEffectSlot.cpp
+++ b/OpenAL32/alAuxEffectSlot.cpp
@@ -204,7 +204,7 @@ ALeffectslot *AllocEffectSlot(ALCcontext *context)
ALenum err{InitEffectSlot(slot)};
if(err != AL_NO_ERROR)
{
- slot->~ALeffectslot();
+ al::destroy_at(slot);
alSetError(context, err, "Effect slot object initialization failed");
return nullptr;
}
@@ -225,7 +225,7 @@ void FreeEffectSlot(ALCcontext *context, ALeffectslot *slot)
ALsizei lidx = id >> 6;
ALsizei slidx = id & 0x3f;
- slot->~ALeffectslot();
+ al::destroy_at(slot);
context->EffectSlotList[lidx].FreeMask |= 1_u64 << slidx;
context->NumEffectSlots--;
@@ -794,7 +794,7 @@ EffectSlotSubList::~EffectSlotSubList()
while(usemask)
{
ALsizei idx{CTZ64(usemask)};
- EffectSlots[idx].~ALeffectslot();
+ al::destroy_at(EffectSlots+idx);
usemask &= ~(1_u64 << idx);
}
FreeMask = ~usemask;