From ec9736035226539d267659d2e6eba2e06c2507ca Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Nov 2018 09:23:01 -0800 Subject: Avoid a separate function to clean up effect slots --- Alc/alc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Alc') diff --git a/Alc/alc.cpp b/Alc/alc.cpp index 9919d011..5fae13b3 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -2619,7 +2619,11 @@ ALCcontext_struct::~ALCcontext_struct() } TRACE("Freed " SZFMT " AuxiliaryEffectSlot property object%s\n", count, (count==1)?"":"s"); - ReleaseALAuxiliaryEffectSlots(this); + count = 0; + for(auto &slot : EffectSlotList) + count += slot ? 1 : 0; + if(count > 0) + WARN(SZFMT " AuxiliaryEffectSlot%s not deleted\n", count, (count==1)?"":"s"); EffectSlotList.clear(); almtx_destroy(&EffectSlotLock); -- cgit v1.2.3