diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-01 11:29:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 11:29:19 +0200 |
commit | 6ed3e9c182627385bf7e249bf770e845d0b949d8 (patch) | |
tree | 02b75f6d38b31649e3cccbe3dcc50cef2beabcd0 /servers/rendering | |
parent | 8be97e3b51f5adbee0f9f5d3193da53680a44695 (diff) | |
parent | 82f7f2c46c023629042d16ada5d5085bd29bb9ad (diff) |
Merge pull request #53208 from timothyqiu/headless-crash
Diffstat (limited to 'servers/rendering')
-rw-r--r-- | servers/rendering/rendering_server_default.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/rendering/rendering_server_default.cpp b/servers/rendering/rendering_server_default.cpp index bed6ade1f6..62390f9d4d 100644 --- a/servers/rendering/rendering_server_default.cpp +++ b/servers/rendering/rendering_server_default.cpp @@ -45,6 +45,9 @@ int RenderingServerDefault::changes = 0; /* FREE */ void RenderingServerDefault::_free(RID p_rid) { + if (unlikely(p_rid.is_null())) { + return; + } if (RSG::storage->free(p_rid)) { return; } |