I have found weird behavior in JUCE VST plugin which tries to create an editor two times (creates/removes/creates) and deletes all child components. I mean it should remove MainWindow and all child components will be destroyed due to std::unique_ptr but instead JUCE trying to destroy all child in deleteEditor->editorBeingDeleted->deleteAllChildren:
Ok, Let’s go forward with simple steps:
- juce_VST_Wrapper.cpp, handleGetEditorBounds - first one editor created here
- juce_VST_Wrapper.cpp, handleOpenEditor - second one here, and before create a new one it removing deleteEditor(true)
Is it a known issue? Do you have any workarounds?