mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-13 14:21:11 +01:00
Fix heap-use-after-free when closing a scene with its builtin script open
(cherry picked from commit 61bc7d65768ebe4baa9b2f888d656cce5109dd5b)
This commit is contained in:
parent
8841a5f056
commit
a7b0364908
@ -543,6 +543,7 @@ void EditorData::remove_scene(int p_idx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
memdelete(edited_scene[p_idx].root);
|
memdelete(edited_scene[p_idx].root);
|
||||||
|
edited_scene.write[p_idx].root = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (current_edited_scene > p_idx) {
|
if (current_edited_scene > p_idx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user