From 8ae07ad1ae2d957f65ba54fdcd19649eceeb0e3d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Nov 2018 15:30:32 -0800 Subject: Automatically clean up buffers with ther sublist --- OpenAL32/alSource.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'OpenAL32/alSource.cpp') 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; -- cgit v1.2.3