summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-07 15:22:24 +0100
committerGitHub <noreply@github.com>2022-01-07 15:22:24 +0100
commitd2772af0d87c9b12e0e8da4020c7cb6f4c905636 (patch)
treeaa719516445ab4d6352eba3137e78d86ca1f6fce /scene
parentfcc2648e18f0b6bcfd2b4e70829078346dc74b36 (diff)
parentf21b5e4d2fb53e692988e01bf4f5b4957dd9422c (diff)
Merge pull request #54351 from LeaoLuciano/leak-remove-line-richtextlabel
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/rich_text_label.cpp1
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) {