UI: Stop virtual camera if active while exiting
Avoid potential memory leaks and crashes.
This commit is contained in:
parent
0f560a9136
commit
6734c9cbc8
1 changed files with 3 additions and 0 deletions
|
|
@ -4844,6 +4844,9 @@ void OBSBasic::closeEvent(QCloseEvent *event)
|
|||
|
||||
closing = true;
|
||||
|
||||
if (outputHandler->VirtualCamActive())
|
||||
outputHandler->StopVirtualCam();
|
||||
|
||||
if (introCheckThread)
|
||||
introCheckThread->wait();
|
||||
if (whatsNewInitThread)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue