Browse Source

Fix macOS crash on editor closed and reopened

On Minihost Modular, the window will not be recreated correctly after
closing. It's because the host does not send the effEditClose opcode.

When effEditOpen is reentered, fVstUI!=nullptr would short-circuit the
initialization of the editor, and continue without an existing window.
pull/162/head
JP Cimalando 6 years ago
parent
commit
c224c8483e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      distrho/src/DistrhoPluginVST.cpp

+ 2
- 1
distrho/src/DistrhoPluginVST.cpp View File

@@ -588,7 +588,8 @@ public:
return 1;

case effEditOpen:
if (fVstUI == nullptr)
delete fVstUI; // hosts which don't pair effEditOpen/effEditClose calls (Minihost Modular)
fVstUI = nullptr;
{
# if DISTRHO_OS_MAC
if (! fUsingNsView)


Loading…
Cancel
Save