mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix heap-use-after-free in Import Defaults Editor
This commit is contained in:
@@ -483,8 +483,5 @@ ShaderGlobalsEditor::ShaderGlobalsEditor() {
|
||||
}
|
||||
|
||||
ShaderGlobalsEditor::~ShaderGlobalsEditor() {
|
||||
if (is_visible_in_tree()) {
|
||||
inspector->edit(nullptr);
|
||||
}
|
||||
memdelete(interface);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user