Browse Source

Fix LS crash on close

tags/1.9.4
falkTX 11 years ago
parent
commit
9ae8e322f5
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      source/backend/plugin/LinuxSamplerPlugin.cpp

+ 7
- 1
source/backend/plugin/LinuxSamplerPlugin.cpp View File

@@ -234,7 +234,7 @@ public:
fSampler.RemoveSamplerChannel(fSamplerChannels[i]);
fSamplerChannels[i] = nullptr;

if (fAudioOutputDevices[i] != nullptr)
if (fAudioOutputDevices[i] != nullptr && fUses16Outs)
{
delete fAudioOutputDevices[i];
fAudioOutputDevices[i] = nullptr;
@@ -242,6 +242,12 @@ public:
}
}

if (fAudioOutputDevices[0] != nullptr)
{
delete fAudioOutputDevices[0];
fAudioOutputDevices[0] = nullptr;
}

delete fMidiInputPort;
fMidiInputPort = nullptr;
}


Loading…
Cancel
Save