From 789a886af8064a8daadffe06cd1515a747e4dda6 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 27 Feb 2024 18:37:07 +0100 Subject: [PATCH] fixup 97cf2b6a: avoid leak --- src/Text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Text.cpp b/src/Text.cpp index 9fb59b5ec9..e1c8830dc3 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -5799,7 +5799,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) cur.resetAnchor(); cur.selection(true); cur.top().pos() = 0; - } + } else + delete inset; } break; -- 2.39.2