Browse Source

Use a MessageManagerLock when deleting the juce audio graph

Fixes #509
tags/1.9.8
falkTX 8 years ago
parent
commit
374dc7e238
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      source/backend/engine/CarlaEngineGraph.cpp

+ 4
- 0
source/backend/engine/CarlaEngineGraph.cpp View File

@@ -37,6 +37,7 @@ using juce::AudioProcessor;
using juce::AudioProcessorEditor; using juce::AudioProcessorEditor;
using juce::FloatVectorOperations; using juce::FloatVectorOperations;
using juce::MemoryBlock; using juce::MemoryBlock;
using juce::MessageManagerLock;
using juce::PluginDescription; using juce::PluginDescription;
using juce::String; using juce::String;
using juce::StringArray; using juce::StringArray;
@@ -1995,6 +1996,9 @@ void EngineInternalGraph::destroy() noexcept
else else
{ {
CARLA_SAFE_ASSERT_RETURN(fPatchbay != nullptr,); CARLA_SAFE_ASSERT_RETURN(fPatchbay != nullptr,);
#if ! (defined(CARLA_OS_MAC) || defined(CARLA_OS_WIN))
const MessageManagerLock mml;
#endif
delete fPatchbay; delete fPatchbay;
fPatchbay = nullptr; fPatchbay = nullptr;
} }


Loading…
Cancel
Save