aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2024-01-01 00:39:33 -0800
committerChris Robinson <[email protected]>2024-01-01 00:39:33 -0800
commit2f2edb326128c56e269a171961d991d8d7936e4f (patch)
treed71b748970e81ef91d2d21f0ca824843f18ebaee /al/source.cpp
parent32de7572ea2f97fd87f94cbf0843b6aaa551b560 (diff)
Use standard operator new[] and delete[] for aligned allocations
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/al/source.cpp b/al/source.cpp
index af58379b..425acbfa 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -3643,7 +3643,7 @@ SourceSubList::~SourceSubList()
std::destroy_at(al::to_address(Sources->begin() + idx));
}
FreeMask = ~usemask;
- al_free(Sources);
+ al_free(alignof(ALsource), Sources);
Sources = nullptr;
}