aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effectslot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/effectslot.cpp')
-rw-r--r--alc/effectslot.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/alc/effectslot.cpp b/alc/effectslot.cpp
index f3324858..8abac248 100644
--- a/alc/effectslot.cpp
+++ b/alc/effectslot.cpp
@@ -5,6 +5,7 @@
#include <stddef.h>
+#include "alcontext.h"
#include "almalloc.h"
@@ -16,3 +17,9 @@ EffectSlotArray *EffectSlot::CreatePtrArray(size_t count) noexcept
void *ptr{al_calloc(alignof(EffectSlotArray), EffectSlotArray::Sizeof(count*2))};
return new(ptr) EffectSlotArray{count};
}
+
+EffectSlot::~EffectSlot()
+{
+ if(mWetBuffer)
+ mWetBuffer->mInUse = false;
+}