From 6df0a315a920bbde795202b7f4f0dab7443fd4d7 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 20 Dec 2022 23:47:09 +1000 Subject: [PATCH] Qt: Ensure game list refresh is cancelled before destroying --- pcsx2-qt/MainWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcsx2-qt/MainWindow.cpp b/pcsx2-qt/MainWindow.cpp index 662f4eeb19..9ed1d3b444 100644 --- a/pcsx2-qt/MainWindow.cpp +++ b/pcsx2-qt/MainWindow.cpp @@ -123,6 +123,9 @@ MainWindow::MainWindow() MainWindow::~MainWindow() { + // make sure the game list isn't refreshing, because it's on a separate thread + cancelGameListRefresh(); + // we compare here, since recreate destroys the window later if (g_main_window == this) g_main_window = nullptr;