mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add safety-checks before some servers free()
This commit is contained in:
@@ -40,6 +40,7 @@ Path3D::Path3D() {
|
||||
}
|
||||
|
||||
Path3D::~Path3D() {
|
||||
ERR_FAIL_NULL(RenderingServer::get_singleton());
|
||||
if (debug_instance.is_valid()) {
|
||||
RS::get_singleton()->free(debug_instance);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user