commit 789a886af8064a8daadffe06cd1515a747e4dda6
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Tue Feb 27 18:37:07 2024 +0100

    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;
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to