diff options
Diffstat (limited to 'al')
-rw-r--r-- | al/source.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/source.cpp b/al/source.cpp index 95c3305e..49f2fb2a 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -3302,7 +3302,7 @@ ALsource::~ALsource() { std::unique_ptr<ALbufferlistitem> head{BufferList}; BufferList = head->mNext.load(std::memory_order_relaxed); - if(ALbuffer *buffer{BufferList->mBuffer}) DecrementRef(buffer->ref); + if(ALbuffer *buffer{head->mBuffer}) DecrementRef(buffer->ref); } queue = nullptr; |