Fix memory leak in RichTextLabel.remove_line
(cherry picked from commit f21b5e4d2f
)
This commit is contained in:
parent
4621b41bfc
commit
57cceb47d1
1 changed files with 1 additions and 0 deletions
|
@ -1667,6 +1667,7 @@ void RichTextLabel::_remove_item(Item *p_item, const int p_line, const int p_sub
|
|||
_remove_item(p_item->subitems.front()->get(), p_line, p_subitem_line);
|
||||
}
|
||||
}
|
||||
memdelete(p_item);
|
||||
}
|
||||
|
||||
void RichTextLabel::add_image(const Ref<Texture> &p_image, const int p_width, const int p_height) {
|
||||
|
|
Loading…
Reference in a new issue