diff options
author | Chris Robinson <[email protected]> | 2018-12-27 10:44:02 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-27 10:44:02 -0800 |
commit | 4dca2f2ee5ef488fbe05397de1ab3029e559cf61 (patch) | |
tree | 930224ac816f69b0ca0a7cd0c97e647d6e04da57 /Alc/alcontext.h | |
parent | be85ab6f826a724105cef05e740b5013a1e6149e (diff) |
Use a unique_ptr for the AsyncEvents ringbuffer
Diffstat (limited to 'Alc/alcontext.h')
-rw-r--r-- | Alc/alcontext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h index dadb4f8f..f843809b 100644 --- a/Alc/alcontext.h +++ b/Alc/alcontext.h @@ -112,7 +112,7 @@ struct ALCcontext_struct { std::thread EventThread; al::semaphore EventSem; - RingBuffer *AsyncEvents{nullptr}; + std::unique_ptr<RingBuffer> AsyncEvents; std::atomic<ALbitfieldSOFT> EnabledEvts{0u}; std::mutex EventCbLock; ALEVENTPROCSOFT EventCb{}; |