Browse Source

Fix static memory leak

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 3 years ago
parent
commit
2168cbbcec
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      zynaddsubfx/rtosc/cpp/ports.cpp

+ 2
- 0
zynaddsubfx/rtosc/cpp/ports.cpp View File

@@ -1431,6 +1431,8 @@ char *Ports::collapsePath(char *p)


void Ports::refreshMagic() void Ports::refreshMagic()
{ {
if (impl)
delete []impl->enump;
delete impl; delete impl;
impl = new Port_Matcher; impl = new Port_Matcher;
generate_minimal_hash(*this, *impl); generate_minimal_hash(*this, *impl);


Loading…
Cancel
Save