aboutsummaryrefslogtreecommitdiffstats
path: root/core/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/context.h')
-rw-r--r--core/context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/context.h b/core/context.h
index 0b830205..6fc1ed5d 100644
--- a/core/context.h
+++ b/core/context.h
@@ -112,7 +112,7 @@ struct ContextBase {
ContextParams mParams;
using VoiceArray = al::FlexArray<Voice*>;
- std::atomic<VoiceArray*> mVoices{};
+ al::atomic_unique_ptr<VoiceArray> mVoices{};
std::atomic<size_t> mActiveVoiceCount{};
void allocVoices(size_t addcount);