diff options
author | Chris Robinson <[email protected]> | 2018-11-25 15:30:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-25 15:30:32 -0800 |
commit | 8ae07ad1ae2d957f65ba54fdcd19649eceeb0e3d (patch) | |
tree | b26085490d71fdb2e0968bfd79c90c3dd3613764 /OpenAL32/alSource.cpp | |
parent | 05845b53e889c2104a5436ff5418c5e2ba5dcbf3 (diff) |
Automatically clean up buffers with ther sublist
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r-- | OpenAL32/alSource.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index 8b461982..12a8a04a 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -3405,10 +3405,7 @@ SourceSubList::~SourceSubList() while(usemask) { ALsizei idx{CTZ64(usemask)}; - ALsource *source{Sources + idx}; - - source->~ALsource(); - + Sources[idx].~ALsource(); usemask &= ~(U64(1) << idx); } FreeMask = ~usemask; |