Fix crash in headless mode

This commit is contained in:
Haoyu Qiu 2021-09-29 16:59:46 +08:00
parent ad635567b1
commit 82f7f2c46c
3 changed files with 7 additions and 0 deletions

View file

@ -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;
}