mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
frontend-tools: Fix crash on shutdown
This commit is contained in:
@@ -568,9 +568,15 @@ static void obs_event(enum obs_frontend_event event, void *)
|
||||
delete scriptsWindow;
|
||||
delete scriptLogWindow;
|
||||
|
||||
scriptData = nullptr;
|
||||
scriptsWindow = nullptr;
|
||||
scriptLogWindow = nullptr;
|
||||
|
||||
} else if (event == OBS_FRONTEND_EVENT_SCENE_COLLECTION_CLEANUP) {
|
||||
scriptLogWindow->hide();
|
||||
scriptLogWindow->Clear();
|
||||
if (scriptLogWindow) {
|
||||
scriptLogWindow->hide();
|
||||
scriptLogWindow->Clear();
|
||||
}
|
||||
|
||||
delete scriptData;
|
||||
scriptData = new ScriptData;
|
||||
|
||||
Reference in New Issue
Block a user