From: Steinar H. Gunderson Date: Sat, 19 Jan 2019 21:46:22 +0000 (+0100) Subject: Work around a crash on exit. X-Git-Tag: 1.8.2~2 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=381c2f0be070abf6278c31a2e31e82fcc0f13b9b Work around a crash on exit. --- 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()