aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index 27475652..9a93fbdc 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -2369,7 +2369,7 @@ static ALvoid InitContext(ALCcontext *Context)
listener.Params.mDistanceModel = Context->mDistanceModel;
- Context->AsyncEvents = ll_ringbuffer_create(511, sizeof(AsyncEvent), false);
+ Context->AsyncEvents.reset(ll_ringbuffer_create(511, sizeof(AsyncEvent), false));
StartEventThrd(Context);
}
@@ -2484,9 +2484,6 @@ ALCcontext_struct::~ALCcontext_struct()
if(count > 0)
TRACE("Destructed " SZFMT " orphaned event%s\n", count, (count==1)?"":"s");
- delete AsyncEvents;
- AsyncEvents = nullptr;
-
ALCdevice_DecRef(Device);
}