Browse Source

Try to fix a crash on close

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc2
falkTX 4 years ago
parent
commit
48d9d4c431
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      source/backend/plugin/CarlaPluginInternal.cpp

+ 4
- 3
source/backend/plugin/CarlaPluginInternal.cpp View File

@@ -589,11 +589,12 @@ CarlaPlugin::ProtectedData::PostRtEvents::PostRtEvents() noexcept
CarlaPlugin::ProtectedData::PostRtEvents::~PostRtEvents() noexcept
{
dataMutex.lock();
data.clear();
dataMutex.unlock();

dataPendingMutex.lock();

data.clear();
dataPendingRT.clear();

dataMutex.unlock();
dataPendingMutex.unlock();
}



Loading…
Cancel
Save