Skip to content

Commit 37ecc90

Browse files
committed
fix crash on exit
1 parent 856fa4c commit 37ecc90

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

modules/gin

plugin/Source/PluginProcessor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,8 @@ void WavetableAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, ju
854854
if (buffer.getNumChannels() != 2)
855855
return;
856856

857-
midiLearn->processBlock (midi, buffer.getNumSamples());
857+
if (midiLearn)
858+
midiLearn->processBlock (midi, buffer.getNumSamples());
858859

859860
if (mtsClient)
860861
for (auto itr : midi)

0 commit comments

Comments
 (0)