aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-08-22 22:45:26 -0700
committerChris Robinson <[email protected]>2020-08-24 14:09:26 -0700
commitff5c9d1c15302473be7e0ea3b5da2643549e8d6c (patch)
tree9e8e1f07cd2a1c28fd3bc75f41f1cd552c570079 /al/auxeffectslot.h
parent01f76f2b671c21c976b1f88c18845a53000afa6b (diff)
Use an intrusive_ptr for ALeffectslotProps::State
Diffstat (limited to 'al/auxeffectslot.h')
-rw-r--r--al/auxeffectslot.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/al/auxeffectslot.h b/al/auxeffectslot.h
index 5f1e6aa8..12411ede 100644
--- a/al/auxeffectslot.h
+++ b/al/auxeffectslot.h
@@ -12,6 +12,7 @@
#include "almalloc.h"
#include "atomic.h"
#include "effects/base.h"
+#include "intrusive_ptr.h"
#include "vector.h"
struct ALeffect;
@@ -29,7 +30,7 @@ struct ALeffectslotProps {
ALenum Type;
EffectProps Props;
- EffectState *State;
+ al::intrusive_ptr<EffectState> State;
std::atomic<ALeffectslotProps*> next;