From 234174c62123c5d2f57d649722b5ca53b0de9d2d Mon Sep 17 00:00:00 2001 From: Chris Robinson <chris.kcat@gmail.com> Date: Fri, 28 Apr 2023 22:49:45 -0700 Subject: Don't try to access null pointers --- al/auxeffectslot.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'al/auxeffectslot.cpp') diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index 285da1d4..571eb717 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -1023,6 +1023,9 @@ void UpdateAllEffectSlotProps(ALCcontext *context) EffectSlotSubList::~EffectSlotSubList() { + if(!EffectSlots) + return; + uint64_t usemask{~FreeMask}; while(usemask) { -- cgit v1.2.3