UI: Stop virtual camera if active while exiting

Avoid potential memory leaks and crashes.
This commit is contained in:
tytan652
2023-02-25 16:06:59 -08:00
committed by Jim
parent 0f560a9136
commit 6734c9cbc8
+3
View File
@@ -4844,6 +4844,9 @@ void OBSBasic::closeEvent(QCloseEvent *event)
closing = true;
if (outputHandler->VirtualCamActive())
outputHandler->StopVirtualCam();
if (introCheckThread)
introCheckThread->wait();
if (whatsNewInitThread)