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

(cherry picked from commit b21edafe98)
This commit is contained in:
Norihiro Kamae 2023-05-27 01:13:32 +09:00 • committed by Ryan Foster
commit e4142c8740

View file

@ -2793,6 +2793,9 @@ OBSBasic::~OBSBasic()
if (updateCheckThread && updateCheckThread->isRunning())
updateCheckThread->wait();
if (patronJsonThread && patronJsonThread->isRunning())
patronJsonThread->wait();
delete screenshotData;
delete previewProjector;
delete studioProgramProjector;