From 37f55b8ca9c68d69203fa071e699f1be284e13ab Mon Sep 17 00:00:00 2001 From: paulfd Date: Sun, 8 Sep 2019 18:18:43 +0200 Subject: [PATCH] Corrected an issue in the registerCC function of the voices that did not check the attached region for nullptr --- sfizz/Voice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sfizz/Voice.cpp b/sfizz/Voice.cpp index 3e340606..63ad4f63 100644 --- a/sfizz/Voice.cpp +++ b/sfizz/Voice.cpp @@ -145,6 +145,9 @@ void sfz::Voice::registerNoteOff(int delay, int channel, int noteNumber, uint8_t void sfz::Voice::registerCC(int delay, int channel [[maybe_unused]], int ccNumber, uint8_t ccValue) noexcept { + if (region == nullptr) + return; + if (ccNumber == 64 && noteIsOff && ccValue < 63) release(delay);