mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
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
This commit is contained in:
parent
192d33ce86
commit
b21edafe98
|
@ -2803,6 +2803,9 @@ OBSBasic::~OBSBasic()
|
||||||
if (updateCheckThread && updateCheckThread->isRunning())
|
if (updateCheckThread && updateCheckThread->isRunning())
|
||||||
updateCheckThread->wait();
|
updateCheckThread->wait();
|
||||||
|
|
||||||
|
if (patronJsonThread && patronJsonThread->isRunning())
|
||||||
|
patronJsonThread->wait();
|
||||||
|
|
||||||
delete screenshotData;
|
delete screenshotData;
|
||||||
delete previewProjector;
|
delete previewProjector;
|
||||||
delete studioProgramProjector;
|
delete studioProgramProjector;
|
||||||
|
|
Loading…
Reference in a new issue