commit 86a621bfd86922a49ce593fec2a618a1e0cc6ef3
parent 27c173f68f0f3899c92f61f93ff4b6f90fd9ac89
Author: falkTX <falktx@falktx.com>
Date: Mon, 13 Sep 2021 18:06:30 +0100
Always quit nicely no matter the plugin format
Diffstat:
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/distrho/src/DistrhoPluginVST2.cpp b/distrho/src/DistrhoPluginVST2.cpp
@@ -202,11 +202,6 @@ public:
# endif
}
- ~UIVst()
- {
- fUI.quit();
- }
-
// -------------------------------------------------------------------
void idle()
diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp
@@ -107,6 +107,7 @@ public:
~UIExporter()
{
+ quit();
delete ui;
delete uiData;
}