Skip to content

Commit 2168cbb

Browse files
committed
Fix static memory leak
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 2c90da5 commit 2168cbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zynaddsubfx/rtosc/cpp/ports.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,8 @@ char *Ports::collapsePath(char *p)
14311431

14321432
void Ports::refreshMagic()
14331433
{
1434+
if (impl)
1435+
delete []impl->enump;
14341436
delete impl;
14351437
impl = new Port_Matcher;
14361438
generate_minimal_hash(*this, *impl);

0 commit comments

Comments
 (0)