aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 6a39ab46..ca7dbb0f 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2386,14 +2386,14 @@ ALCcontext::~ALCcontext()
if(lprops)
{
TRACE("Freed unapplied listener update %p\n", lprops);
- al_free(lprops);
+ delete lprops;
}
count = 0;
lprops = mFreeListenerProps.exchange(nullptr, std::memory_order_acquire);
while(lprops)
{
ALlistenerProps *next{lprops->next.load(std::memory_order_relaxed)};
- al_free(lprops);
+ delete lprops;
lprops = next;
++count;
}