mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
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:
parent
845fb839e8
commit
4d7eb04cf6
2 changed files with 5 additions and 0 deletions
|
|
@ -58,6 +58,8 @@ WindowsVSTPluginUI::WindowsVSTPluginUI (boost::shared_ptr<PluginInsert> pi, boos
|
||||||
|
|
||||||
WindowsVSTPluginUI::~WindowsVSTPluginUI ()
|
WindowsVSTPluginUI::~WindowsVSTPluginUI ()
|
||||||
{
|
{
|
||||||
|
fst_destroy_editor (_vst->state());
|
||||||
|
|
||||||
// plugin destructor destroys the custom GUI, via Windows fun-and-games,
|
// plugin destructor destroys the custom GUI, via Windows fun-and-games,
|
||||||
// and then our PluginUIWindow does the rest
|
// and then our PluginUIWindow does the rest
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -374,6 +374,9 @@ fst_exit (void)
|
||||||
int
|
int
|
||||||
fst_run_editor (VSTState* fst, void* window_parent)
|
fst_run_editor (VSTState* fst, void* window_parent)
|
||||||
{
|
{
|
||||||
|
/* For safety, remove any pre-existing editor window */
|
||||||
|
fst_destroy_editor (fst);
|
||||||
|
|
||||||
if (fst->windows_window == NULL) {
|
if (fst->windows_window == NULL) {
|
||||||
HMODULE hInst;
|
HMODULE hInst;
|
||||||
HWND window;
|
HWND window;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue