aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-25 09:23:01 -0800
committerChris Robinson <[email protected]>2018-11-25 09:23:01 -0800
commitec9736035226539d267659d2e6eba2e06c2507ca (patch)
treeab1b6057217f7a69d1ae69d18c710ff22cdedbde /Alc
parentbf4518fe5cbe708b3d6b44855f05b58008a48cc8 (diff)
Avoid a separate function to clean up effect slots
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alc.cpp6
1 files changed, 5 insertions, 1 deletions
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);