Browse Source

Fix a memory leak in the Jack wrapper

pull/64/head
JP Cimalando Filipe Coelho <falktx@falktx.com> 5 years ago
parent
commit
59895e9f8f
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      distrho/src/DistrhoPluginJack.cpp

+ 8
- 0
distrho/src/DistrhoPluginJack.cpp View File

@@ -204,6 +204,14 @@ public:
fLastOutputValues = nullptr;
}

#if DISTRHO_PLUGIN_HAS_UI
if (fParametersChanged != nullptr)
{
delete[] fParametersChanged;
fParametersChanged = nullptr;
}
#endif

fPlugin.deactivate();

if (fClient == nullptr)


Loading…
Cancel
Save