mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
UI: Fix crash when receiving multiple SIGINT
When there are two or more SIGINT signals were sent to obs, obs crashes because the 2nd SIGINT calls `close` though the main window has been deleted.
This commit is contained in:
+2
-1
@@ -3264,7 +3264,8 @@ void OBSApp::ProcessSigInt(void)
|
||||
recv(sigintFd[1], &tmp, sizeof(tmp), 0);
|
||||
|
||||
OBSBasic *main = reinterpret_cast<OBSBasic *>(GetMainWindow());
|
||||
main->close();
|
||||
if (main)
|
||||
main->close();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user