diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-07 15:22:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 15:22:24 +0100 |
commit | d2772af0d87c9b12e0e8da4020c7cb6f4c905636 (patch) | |
tree | aa719516445ab4d6352eba3137e78d86ca1f6fce | |
parent | fcc2648e18f0b6bcfd2b4e70829078346dc74b36 (diff) | |
parent | f21b5e4d2fb53e692988e01bf4f5b4957dd9422c (diff) |
Merge pull request #54351 from LeaoLuciano/leak-remove-line-richtextlabel
-rw-r--r-- | scene/gui/rich_text_label.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index fe25d027f6..348a0324f4 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -2363,6 +2363,7 @@ void RichTextLabel::_remove_item(Item *p_item, const int p_line, const int p_sub // Then remove the provided item itself. 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, InlineAlignment p_alignment) { |