Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix static memory leak
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Sep 18, 2021
1 parent 2c90da5 commit 2168cbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zynaddsubfx/rtosc/cpp/ports.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 2168cbb

Please sign in to comment.