From b21edafe980c894456a9b699859814b9e8829d9d Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Sat, 27 May 2023 01:13:32 +0900 Subject: [PATCH] UI: Fix crash on patronJsonThread If a user exit obs while patronJsonThread is running, the thread crashed with the error below. QThread: Destroyed while thread is still running --- UI/window-basic-main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 39fee78a5..46a62bb87 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -2803,6 +2803,9 @@ OBSBasic::~OBSBasic() if (updateCheckThread && updateCheckThread->isRunning()) updateCheckThread->wait(); + if (patronJsonThread && patronJsonThread->isRunning()) + patronJsonThread->wait(); + delete screenshotData; delete previewProjector; delete studioProgramProjector;