change thread join strategy, fix a few leaks, fix a few bugs
[goodguy/history.git] / cinelerra-5.1 / cinelerra / videowindow.C
index 76179b3be12e50bf3cedbdd1d3415ed1a1614a1a..ac640a20e4c550851ea83d40405fd6189ff3cfb2 100644 (file)
@@ -45,8 +45,8 @@ VideoWindow::~VideoWindow()
 {
        if(gui && running()) {
                gui->set_done(0);
 {
        if(gui && running()) {
                gui->set_done(0);
-               join();
        }
        }
+       join();
        delete gui;  gui = 0;
 }
 
        delete gui;  gui = 0;
 }