diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-08-14 01:05:45 +0200 |
---|---|---|
committer | Filipe Coelho <falktx@falktx.com> | 2018-08-14 06:02:34 +0200 |
commit | 59895e9f8fcc1b035907eab29926e46827648ffc (patch) | |
tree | 328d17eb5dd1b343bb5143493810688b1ab49106 | |
parent | d49366db694fb9097210ba9665449f6a67025285 (diff) |
Fix a memory leak in the Jack wrapper
-rw-r--r-- | distrho/src/DistrhoPluginJack.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/distrho/src/DistrhoPluginJack.cpp b/distrho/src/DistrhoPluginJack.cpp index 1d0a8c37..ef2b77a7 100644 --- a/distrho/src/DistrhoPluginJack.cpp +++ b/distrho/src/DistrhoPluginJack.cpp @@ -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) |