aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alcontext.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h
index 4a056597..1d66ffc6 100644
--- a/Alc/alcontext.h
+++ b/Alc/alcontext.h
@@ -148,7 +148,7 @@ inline void UnlockEffectSlotList(ALCcontext *context)
class ContextRef {
ALCcontext *mCtx{nullptr};
- void release() noexcept
+ void reset() noexcept
{
if(mCtx)
ALCcontext_DecRef(mCtx);
@@ -158,12 +158,12 @@ class ContextRef {
public:
ContextRef() noexcept = default;
explicit ContextRef(ALCcontext *ctx) noexcept : mCtx(ctx) { }
- ~ContextRef() { release(); }
+ ~ContextRef() { reset(); }
ContextRef& operator=(const ContextRef&) = delete;
ContextRef& operator=(ContextRef&& rhs) noexcept
{
- release();
+ reset();
mCtx = rhs.mCtx;
rhs.mCtx = nullptr;
return *this;