aboutsummaryrefslogtreecommitdiffstats
path: root/alc/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/context.cpp')
-rw-r--r--alc/context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/context.cpp b/alc/context.cpp
index 07ae6434..906a160e 100644
--- a/alc/context.cpp
+++ b/alc/context.cpp
@@ -198,12 +198,12 @@ bool ALCcontext::deinit()
{
WARN("%p released while current on thread\n", voidp{this});
sThreadContext.set(nullptr);
- release();
+ dec_ref();
}
ALCcontext *origctx{this};
if(sGlobalContext.compare_exchange_strong(origctx, nullptr))
- release();
+ dec_ref();
bool ret{};
/* First make sure this context exists in the device's list. */