Fix Mallets crash when STK rawwave files can't be loaded

This commit is contained in:
Hyunin Song
2018-05-30 19:14:06 +09:00
parent 24ae559de5
commit 75a6502100

View File

@@ -85,7 +85,7 @@ public:
inline ~malletsSynth()
{
m_voice->noteOff( 0.0 );
if (m_voice) {m_voice->noteOff(0.0);}
delete[] m_delay;
delete m_voice;
}