1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add safety-checks before some servers free()

This commit is contained in:
Adam Scott
2022-12-12 12:42:37 -05:00
parent a754930918
commit ea33001b95
65 changed files with 125 additions and 1 deletions

View File

@@ -1550,5 +1550,6 @@ Environment::Environment() {
}
Environment::~Environment() {
ERR_FAIL_NULL(RenderingServer::get_singleton());
RS::get_singleton()->free(environment);
}