Fix a crash when toggling back and forth between a generic plugin GUI window and a VST plugin's own GUI

This commit is contained in:
John Emmas 2016-08-28 10:26:02 +01:00
parent 845fb839e8
commit 4d7eb04cf6
2 changed files with 5 additions and 0 deletions

View file

@ -58,6 +58,8 @@ WindowsVSTPluginUI::WindowsVSTPluginUI (boost::shared_ptr<PluginInsert> pi, boos
WindowsVSTPluginUI::~WindowsVSTPluginUI ()
{
fst_destroy_editor (_vst->state());
// plugin destructor destroys the custom GUI, via Windows fun-and-games,
// and then our PluginUIWindow does the rest
}