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.
@@ -3238,7 +3238,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
}