mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Don't try to compare freed object to nullptr
This commit is contained in:
parent
3f7f4fb6f3
commit
2ad5b7100b
@ -437,6 +437,9 @@ void ShaderGlobalsEditor::_notification(int p_what) {
|
||||
inspector->edit(interface);
|
||||
}
|
||||
}
|
||||
if (p_what == NOTIFICATION_PREDELETE) {
|
||||
inspector->edit(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
ShaderGlobalsEditor::ShaderGlobalsEditor() {
|
||||
@ -474,6 +477,5 @@ ShaderGlobalsEditor::ShaderGlobalsEditor() {
|
||||
}
|
||||
|
||||
ShaderGlobalsEditor::~ShaderGlobalsEditor() {
|
||||
inspector->edit(nullptr);
|
||||
memdelete(interface);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user