From 393984e3f356a556b9a7918e050e78757ee64a96 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Tue, 17 Dec 2019 21:25:19 +0100 Subject: [PATCH] Corrected a bug where ref to freed memory was kept When changing instrument the unknown opcodes should be clear as they are string views and not strings. --- src/sfizz/Synth.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sfizz/Synth.cpp b/src/sfizz/Synth.cpp index d16e7954..2f8bd9b8 100644 --- a/src/sfizz/Synth.cpp +++ b/src/sfizz/Synth.cpp @@ -142,6 +142,7 @@ void sfz::Synth::clear() globalOpcodes.clear(); masterOpcodes.clear(); groupOpcodes.clear(); + unknownOpcodes.clear(); } void sfz::Synth::handleGlobalOpcodes(const std::vector& members)