From: Jean-Marc Lasgouttes Date: Tue, 27 Feb 2024 17:37:07 +0000 (+0100) Subject: fixup 97cf2b6a: avoid leak X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=789a886af8064a8daadffe06cd1515a747e4dda6;p=features.git fixup 97cf2b6a: avoid leak --- 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;