Fix canvas_group not being freed in RendererCanvasCull::free
This commit is contained in:
parent
01a3b84545
commit
02572884f4
@ -1664,6 +1664,11 @@ bool RendererCanvasCull::free(RID p_rid) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (canvas_item->canvas_group != nullptr) {
|
||||||
|
memdelete(canvas_item->canvas_group);
|
||||||
|
canvas_item->canvas_group = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
canvas_item_owner.free(p_rid);
|
canvas_item_owner.free(p_rid);
|
||||||
|
|
||||||
} else if (canvas_light_owner.owns(p_rid)) {
|
} else if (canvas_light_owner.owns(p_rid)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user