mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
UI: Stop virtual camera if active while exiting
Avoid potential memory leaks and crashes.
This commit is contained in:
@@ -4844,6 +4844,9 @@ void OBSBasic::closeEvent(QCloseEvent *event)
|
||||
|
||||
closing = true;
|
||||
|
||||
if (outputHandler->VirtualCamActive())
|
||||
outputHandler->StopVirtualCam();
|
||||
|
||||
if (introCheckThread)
|
||||
introCheckThread->wait();
|
||||
if (whatsNewInitThread)
|
||||
|
||||
Reference in New Issue
Block a user