From 73ab9d46c88f034a32a6fb174e98fd23dec1ff98 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 24 Aug 2020 16:34:53 -0700 Subject: Use an intrusive_ptr to hold the unapplied effect state --- al/auxeffectslot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'al/auxeffectslot.h') diff --git a/al/auxeffectslot.h b/al/auxeffectslot.h index c9e54f60..71f99a11 100644 --- a/al/auxeffectslot.h +++ b/al/auxeffectslot.h @@ -49,7 +49,7 @@ struct ALeffectslot { ALenum Type{AL_EFFECT_NULL}; EffectProps Props{}; - EffectState *State{nullptr}; + al::intrusive_ptr State; } Effect; std::atomic_flag PropsClean; -- cgit v1.2.3