mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-18 06:26:16 +00:00
Add safety-checks before some servers free()
This commit is contained in:
@@ -157,6 +157,7 @@ VisualInstance3D::VisualInstance3D() {
|
||||
}
|
||||
|
||||
VisualInstance3D::~VisualInstance3D() {
|
||||
ERR_FAIL_NULL(RenderingServer::get_singleton());
|
||||
RenderingServer::get_singleton()->free(instance);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user