From ff5c9d1c15302473be7e0ea3b5da2643549e8d6c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 22 Aug 2020 22:45:26 -0700 Subject: Use an intrusive_ptr for ALeffectslotProps::State --- al/auxeffectslot.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'al/auxeffectslot.h') 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 State; std::atomic next; -- cgit v1.2.3