diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 75d0969..81b7e42 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -356,9 +356,10 @@ void PaulstretchpluginAudioProcessor::getStateInformation (MemoryBlock& destData void PaulstretchpluginAudioProcessor::setStateInformation (const void* data, int sizeInBytes) { - ValueTree tree = ValueTree::readFromData(data, sizeInBytes); + ValueTree tree = ValueTree::readFromData(data, sizeInBytes); if (tree.isValid()) { + std::lock_guard locker(m_mutex); for (int i = 0; i