X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmainwindow.cpp;h=84b855a931335c16c16af897c3ca1a33dafac028;hb=381c2f0be070abf6278c31a2e31e82fcc0f13b9b;hp=f465468b1dbafe68ee2217a786e8db35add06511;hpb=55bc1e47c47dfdeeec06c55de9a53b95bdbbd326;p=nageru diff --git a/futatabi/mainwindow.cpp b/futatabi/mainwindow.cpp index f465468..84b855a 100644 --- a/futatabi/mainwindow.cpp +++ b/futatabi/mainwindow.cpp @@ -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()