From 385f1fd3f06350238b88b2dccf1e113d04fb581b Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 18 Sep 2021 15:19:31 +0100 Subject: [PATCH] Fix static memory leak Signed-off-by: falkTX --- zynaddsubfx/rtosc/cpp/ports.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);