Fix heap-use-after-free in Import Defaults Editor

This commit is contained in:
Michael Alexsander
2021-02-24 18:34:14 -03:00
parent 58cb152565
commit f2ad7c5f12
3 changed files with 7 additions and 4 deletions

View File

@@ -483,8 +483,5 @@ ShaderGlobalsEditor::ShaderGlobalsEditor() {
}
ShaderGlobalsEditor::~ShaderGlobalsEditor() {
if (is_visible_in_tree()) {
inspector->edit(nullptr);
}
memdelete(interface);
}