From 381c2f0be070abf6278c31a2e31e82fcc0f13b9b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 19 Jan 2019 22:46:22 +0100 Subject: [PATCH] Work around a crash on exit. --- futatabi/mainwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- 2.39.2