VSTPlugin::closeEditor() can be invoked again from VSTPlugin::closeEditor().
Second closeEditor() is invoked from editorWidget->close() in first closeEditor().
In second func, editorWidget will be set with NULL, then deleteLater() in first
func is using empty editorWidget
Motivation and Context
modify closeEditor()
How Has This Been Tested?
select VST-1, open editor UI;
switch to VST-2
Types of changes
Bug fix (non-breaking change which fixes an issue)
Description
VSTPlugin::closeEditor() can be invoked again from VSTPlugin::closeEditor(). Second closeEditor() is invoked from editorWidget->close() in first closeEditor(). In second func, editorWidget will be set with NULL, then deleteLater() in first func is using empty editorWidget
Motivation and Context
modify closeEditor()
How Has This Been Tested?
select VST-1, open editor UI; switch to VST-2
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: