]> git.sesse.net Git - nageru/blobdiff - futatabi/mainwindow.cpp
Work around a crash on exit.
[nageru] / 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()