Fix various paste errors in tempo.cc. Should fix recent regressions.
[ardour.git] / libs / fst / vstwin.c
index 3a1f624934eff4335ce4d2d126ded79204d740a5..ba3187684b2da2dbafd2cc2ce138899d54ec39ae 100644 (file)
@@ -374,6 +374,9 @@ fst_exit (void)
 int
 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) {
                HMODULE hInst;
                HWND window;