diff --git a/zynaddsubfx/rtosc/cpp/ports.cpp b/zynaddsubfx/rtosc/cpp/ports.cpp index 68987e4..c73d982 100644 --- a/zynaddsubfx/rtosc/cpp/ports.cpp +++ b/zynaddsubfx/rtosc/cpp/ports.cpp @@ -1431,6 +1431,8 @@ char *Ports::collapsePath(char *p) void Ports::refreshMagic() { + if (impl) + delete []impl->enump; delete impl; impl = new Port_Matcher; generate_minimal_hash(*this, *impl);