]> git.sesse.net Git - nageru/commitdiff
Work around a crash on exit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Jan 2019 21:46:22 +0000 (22:46 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Jan 2019 21:46:22 +0000 (22:46 +0100)
futatabi/mainwindow.cpp

index f465468b1dbafe68ee2217a786e8db35add06511..84b855a931335c16c16af897c3ca1a33dafac028 100644 (file)
@@ -312,7 +312,10 @@ void MainWindow::change_num_cameras()
 
 MainWindow::~MainWindow()
 {
-       // Empty so that we can forward-declare Player in the .h file.
+       // We don't have a context to release Player's OpenGL resources in here,
+       // so instead of crashing on exit, leak it.
+       live_player.release();
+       preview_player.release();
 }
 
 void MainWindow::cue_in_clicked()