diff options
author | Adam Scott <ascott.ca@gmail.com> | 2022-12-12 12:42:37 -0500 |
---|---|---|
committer | Adam Scott <ascott.ca@gmail.com> | 2022-12-29 16:23:38 -0500 |
commit | ea33001b95d57f7b400d78d4b20bef23293d9077 (patch) | |
tree | 71ac58a0294e7417e42601cd46fccaac4bcbbe2e /scene/resources/sky.cpp | |
parent | a75493091823020d858fabadbfa5994da0d658cb (diff) | |
download | redot-engine-ea33001b95d57f7b400d78d4b20bef23293d9077.tar.gz |
Add safety-checks before some servers `free()`
Diffstat (limited to 'scene/resources/sky.cpp')
-rw-r--r-- | scene/resources/sky.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/sky.cpp b/scene/resources/sky.cpp index 735134e27b..32ce0abf7a 100644 --- a/scene/resources/sky.cpp +++ b/scene/resources/sky.cpp @@ -106,5 +106,6 @@ Sky::Sky() { } Sky::~Sky() { + ERR_FAIL_NULL(RenderingServer::get_singleton()); RS::get_singleton()->free(sky); } |