mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Stop virtual camera if active while exiting
Avoid potential memory leaks and crashes.
This commit is contained in:
parent
0f560a9136
commit
6734c9cbc8
|
@ -4844,6 +4844,9 @@ void OBSBasic::closeEvent(QCloseEvent *event)
|
|||
|
||||
closing = true;
|
||||
|
||||
if (outputHandler->VirtualCamActive())
|
||||
outputHandler->StopVirtualCam();
|
||||
|
||||
if (introCheckThread)
|
||||
introCheckThread->wait();
|
||||
if (whatsNewInitThread)
|
||||
|
|
Loading…
Reference in a new issue