Fix memory leak in RichTextLabel.remove_line
This commit is contained in:
parent
6d930bd270
commit
f21b5e4d2f
1 changed files with 1 additions and 0 deletions
|
@ -2346,6 +2346,7 @@ void RichTextLabel::_remove_item(Item *p_item, const int p_line, const int p_sub
|
||||||
// Then remove the provided item itself.
|
// Then remove the provided item itself.
|
||||||
p_item->parent->subitems.erase(p_item);
|
p_item->parent->subitems.erase(p_item);
|
||||||
}
|
}
|
||||||
|
memdelete(p_item);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RichTextLabel::add_image(const Ref<Texture2D> &p_image, const int p_width, const int p_height, const Color &p_color, InlineAlign p_align) {
|
void RichTextLabel::add_image(const Ref<Texture2D> &p_image, const int p_width, const int p_height, const Color &p_color, InlineAlign p_align) {
|
||||||
|
|
Loading…
Reference in a new issue