From 75a65021004681402e9b4a03463eb19c18ecdab7 Mon Sep 17 00:00:00 2001 From: Hyunin Song Date: Wed, 30 May 2018 19:14:06 +0900 Subject: [PATCH] Fix Mallets crash when STK rawwave files can't be loaded --- plugins/stk/mallets/mallets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/stk/mallets/mallets.h b/plugins/stk/mallets/mallets.h index 649b8ff45..3928c531c 100644 --- a/plugins/stk/mallets/mallets.h +++ b/plugins/stk/mallets/mallets.h @@ -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; }