frontend-tools: Fix crash on shutdown
This commit is contained in:
parent
ea271f9d91
commit
2f07107e88
@ -568,9 +568,15 @@ static void obs_event(enum obs_frontend_event event, void *)
|
|||||||
delete scriptsWindow;
|
delete scriptsWindow;
|
||||||
delete scriptLogWindow;
|
delete scriptLogWindow;
|
||||||
|
|
||||||
|
scriptData = nullptr;
|
||||||
|
scriptsWindow = nullptr;
|
||||||
|
scriptLogWindow = nullptr;
|
||||||
|
|
||||||
} else if (event == OBS_FRONTEND_EVENT_SCENE_COLLECTION_CLEANUP) {
|
} else if (event == OBS_FRONTEND_EVENT_SCENE_COLLECTION_CLEANUP) {
|
||||||
|
if (scriptLogWindow) {
|
||||||
scriptLogWindow->hide();
|
scriptLogWindow->hide();
|
||||||
scriptLogWindow->Clear();
|
scriptLogWindow->Clear();
|
||||||
|
}
|
||||||
|
|
||||||
delete scriptData;
|
delete scriptData;
|
||||||
scriptData = new ScriptData;
|
scriptData = new ScriptData;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user