1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Fixed a potential race in AudioProcessorGraph

This commit is contained in:
reuk 2018-08-22 15:53:20 +01:00 committed by Tom Poole
parent 41e7251519
commit 18bdd52607

View file

@ -893,6 +893,8 @@ void AudioProcessorGraph::topologyChanged()
void AudioProcessorGraph::clear()
{
const ScopedLock sl (getCallbackLock());
if (nodes.isEmpty())
return;
@ -1253,6 +1255,8 @@ bool AudioProcessorGraph::supportsDoublePrecisionProcessing() const
void AudioProcessorGraph::releaseResources()
{
const ScopedLock sl (getCallbackLock());
isPrepared = 0;
for (auto* n : nodes)