Add safety-checks before some servers free()

This commit is contained in:
Adam Scott
2022-12-29 16:23:38 -05:00
parent a754930918
commit ea33001b95
65 changed files with 125 additions and 1 deletions
+1
View File
@@ -157,6 +157,7 @@ VisualInstance3D::VisualInstance3D() {
}
VisualInstance3D::~VisualInstance3D() {
ERR_FAIL_NULL(RenderingServer::get_singleton());
RenderingServer::get_singleton()->free(instance);
}